Struct Undefined
#[repr(transparent)]
pub struct Undefined { /* private fields */ }
The JavaScript undefined value.
This type represents the JavaScript undefined primitive value and can be
used as a generic type parameter to indicate that a value is undefined.
Implementations
impl Undefined
const UNDEFINED: Undefined = _;The undefined constant.
Trait Implementations
impl AsRef<JsValue> for Undefined
fn as_ref(&self) -> &JsValue
impl AsRef<Undefined> for Undefined
fn as_ref(&self) -> &Undefined
impl Clone for Undefined
fn clone(&self) -> Self
impl Debug for Undefined
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for Undefined
fn default() -> Self
impl Deref for Undefined
type Target = JsValue;fn deref(&self) -> &JsValue
impl Display for Undefined
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Undefined
impl From<JsValue> for Undefined
fn from(obj: JsValue) -> Self
impl FromWasmAbi for Undefined
type Abi = <JsValue as FromWasmAbi>::Abi;unsafe fn from_abi(js: Self::Abi) -> Self
impl IntoJsGeneric for Undefined
where
Undefined: JsGeneric,
type JsCanon = Undefined;fn to_js(self) -> Undefined
impl IntoWasmAbi for Undefined
type Abi = <JsValue as IntoWasmAbi>::Abi;fn into_abi(self) -> Self::Abi
impl JsCast for Undefined
fn instanceof(val: &JsValue) -> boolfn is_type_of(val: &JsValue) -> boolfn unchecked_from_js(val: JsValue) -> Selffn unchecked_from_js_ref(val: &JsValue) -> &Self
impl LongRefFromWasmAbi for Undefined
type Abi = <JsValue as LongRefFromWasmAbi>::Abi;type Anchor = Undefined;unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
impl OptionFromWasmAbi for Undefined
fn is_none(abi: &Self::Abi) -> bool
impl OptionIntoWasmAbi for Undefined
fn none() -> Self::Abi
impl PartialEq for Undefined
fn eq(&self, other: &Self) -> bool
impl Promising for Undefined
type Resolution = Undefined;
impl RefFromWasmAbi for Undefined
type Abi = <JsValue as RefFromWasmAbi>::Abi;type Anchor = ManuallyDrop<Undefined>;unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor