#[repr(transparent)]pub struct Null {
pub obj: JsValue,
}Fields§
§obj: JsValueImplementations§
Trait Implementations§
Source§impl BatchableResult for Null
impl BatchableResult for Null
Source§impl BinaryDecode for Null
impl BinaryDecode for Null
fn decode(decoder: &mut DecodedData<'_>) -> Result<Null, DecodeError>
Source§impl BinaryEncode for Null
impl BinaryEncode for Null
fn encode(self, encoder: &mut EncodedData)
Source§impl EncodeTypeDef for Null
impl EncodeTypeDef for Null
Source§fn encode_type_def(buf: &mut Vec<u8>)
fn encode_type_def(buf: &mut Vec<u8>)
Encode this type’s definition into the buffer.
For primitives, this is just the TypeTag byte.
For callbacks, this includes param count, param types, and return type.
Source§impl JsCast for Null
impl JsCast for Null
Source§fn instanceof(value: &JsValue) -> bool
fn instanceof(value: &JsValue) -> bool
Check if a JsValue is an instance of this type. Read more
Source§fn is_type_of(value: &JsValue) -> bool
fn is_type_of(value: &JsValue) -> bool
Performs a dynamic type check to see whether the
JsValue provided
is a value of this type. Read moreSource§fn unchecked_from_js(value: JsValue) -> Null
fn unchecked_from_js(value: JsValue) -> Null
Unchecked cast from JsValue to this type. Read more
Source§fn unchecked_from_js_ref(value: &JsValue) -> &Null
fn unchecked_from_js_ref(value: &JsValue) -> &Null
Unchecked cast from a JsValue reference to a reference of this type. Read more
Source§fn has_type<T>(&self) -> boolwhere
T: JsCast,
fn has_type<T>(&self) -> boolwhere
T: JsCast,
Test whether this JS value has a type
T. Read moreSource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
Try to cast this value to type T. Read more
Source§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
Try to get a reference to type T from this value. Read more
Source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
Test whether this JS value is an instance of the type
T. Read moreSource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
Unchecked cast to another type.
Source§fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
Unchecked cast to a reference of another type.
impl Eq for Null
impl StructuralPartialEq for Null
impl<T> UpcastFrom<Null> for JsOption<T>
impl UpcastFrom<Null> for JsValue
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromWasmAbi for Twhere
T: BinaryDecode + EncodeTypeDef,
impl<T> FromWasmAbi for Twhere
T: BinaryDecode + EncodeTypeDef,
Source§impl<T> IntoWasmAbi for Twhere
T: BinaryEncode + EncodeTypeDef,
impl<T> IntoWasmAbi for Twhere
T: BinaryEncode + EncodeTypeDef,
Source§impl<T> RefFromBinaryDecode for Twhere
T: JsCast + 'static,
impl<T> RefFromBinaryDecode for Twhere
T: JsCast + 'static,
Source§type Anchor = JsCastAnchor<T>
type Anchor = JsCastAnchor<T>
The anchor type that keeps the decoded reference valid.
Source§fn ref_decode(
_decoder: &mut DecodedData<'_>,
) -> Result<<T as RefFromBinaryDecode>::Anchor, DecodeError>
fn ref_decode( _decoder: &mut DecodedData<'_>, ) -> Result<<T as RefFromBinaryDecode>::Anchor, DecodeError>
Decode a reference anchor from binary data.