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) -> bool
fn is_type_of(val: &JsValue) -> bool
fn unchecked_from_js(val: JsValue) -> Self
fn 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

impl StructuralPartialEq for Undefined

impl UpcastFrom<()> for Undefined

impl UpcastFrom<Undefined> for Undefined

Auto Trait Implementations

impl Freeze for Undefined

impl RefUnwindSafe for Undefined

impl Send for Undefined

impl Sync for Undefined

impl Unpin for Undefined

impl UnsafeUnpin for Undefined

impl UnwindSafe for Undefined

Blanket Implementations

impl<P, T> Receiver for Undefined where P: Deref<Target = T> + ?Sized, T: ?Sized,

impl<S, T> Upcast<T> for Undefined where T: UpcastFrom<S> + ?Sized, S: ?Sized,

impl<T> Any for Undefined where T: 'static + ?Sized,

impl<T> Borrow<T> for Undefined where T: ?Sized,

impl<T> BorrowMut<T> for Undefined where T: ?Sized,

impl<T> CloneToUninit for Undefined where T: Clone,

impl<T> From<T> for Undefined

impl<T> JsGeneric for Undefined where T: ErasableGeneric<Repr = JsValue> + UpcastFrom<T> + Upcast<JsValue> + JsCast + 'static,

impl<T> ReturnWasmAbi for Undefined where T: IntoWasmAbi,

impl<T> ToOwned for Undefined where T: Clone,

impl<T> ToString for Undefined where T: Display + ?Sized,

impl<T> TryFromJsValue for Undefined where T: JsCast,

impl<T> VectorFromWasmAbi for Undefined where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorIntoWasmAbi for Undefined where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorRefIntoWasmAbi for Undefined where &'a T: for<'a> Into<JsValue>,

impl<T, U> Into<U> for Undefined where U: From<T>,

impl<T, U> TryFrom<U> for Undefined where U: Into<T>,

impl<T, U> TryInto<U> for Undefined where U: TryFrom<T>,