Struct Null

#[repr(transparent)]
pub struct Null { /* private fields */ }

The JavaScript null value.

This type represents the JavaScript null primitive value and can be used as a generic type parameter to indicate that a value is null.

Implementations

impl Null

const NULL: Null = _;

The null constant.

Trait Implementations

impl AsRef<JsValue> for Null

fn as_ref(&self) -> &JsValue

impl AsRef<Null> for Null

fn as_ref(&self) -> &Null

impl Clone for Null

fn clone(&self) -> Self

impl Debug for Null

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for Null

fn default() -> Self

impl Deref for Null

type Target = JsValue;
fn deref(&self) -> &JsValue

impl Display for Null

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for Null

impl From<JsValue> for Null

fn from(obj: JsValue) -> Self

impl FromWasmAbi for Null

type Abi = <JsValue as FromWasmAbi>::Abi;
unsafe fn from_abi(js: Self::Abi) -> Self

impl IntoJsGeneric for Null where Null: JsGeneric,

type JsCanon = Null;
fn to_js(self) -> Null

impl IntoWasmAbi for Null

type Abi = <JsValue as IntoWasmAbi>::Abi;
fn into_abi(self) -> Self::Abi

impl JsCast for Null

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 Null

type Abi = <JsValue as LongRefFromWasmAbi>::Abi;
type Anchor = Null;
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

impl OptionFromWasmAbi for Null

fn is_none(abi: &Self::Abi) -> bool

impl OptionIntoWasmAbi for Null

fn none() -> Self::Abi

impl PartialEq for Null

fn eq(&self, other: &Self) -> bool

impl Promising for Null

type Resolution = Null;

impl RefFromWasmAbi for Null

type Abi = <JsValue as RefFromWasmAbi>::Abi;
type Anchor = ManuallyDrop<Null>;
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

impl StructuralPartialEq for Null

impl UpcastFrom<Null> for Null

Auto Trait Implementations

impl Freeze for Null

impl RefUnwindSafe for Null

impl Send for Null

impl Sync for Null

impl Unpin for Null

impl UnsafeUnpin for Null

impl UnwindSafe for Null

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for Null

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

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

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

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

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

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

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

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

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

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

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