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) -> boolfn is_type_of(val: &JsValue) -> boolfn unchecked_from_js(val: JsValue) -> Selffn 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