Skip to main content

NullableIntoWasmAbi

Trait NullableIntoWasmAbi 

Source
pub trait NullableIntoWasmAbi: MaybeIntoWasmAbi {
    // Required method
    fn null() -> Self::MaybeAbi;
}
Expand description

The Null value of Nullable<Self>, which shares the ABI of Option<Self> with a second spare value beside none.

Nullable<T> and Option<Nullable<T>> take their conversions from this trait, so every T implementing it can be wrapped, including under a generic bound such as Nullable<impl JsStringLike>.

§⚠️ Unstable

This is part of the internal convert module, no stability guarantees are provided. Use at your own risk. See its documentation for more details.

Required Methods§

Source

fn null() -> Self::MaybeAbi

Returns the ABI value for Nullable::Null, which JS reads as null.

It should be guaranteed that neither into_maybe_abi nor none can produce this value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl NullableIntoWasmAbi for &Box<str>

Source§

fn null() -> Self::MaybeAbi

Source§

impl NullableIntoWasmAbi for &Cow<'_, str>

Source§

fn null() -> Self::MaybeAbi

Source§

impl NullableIntoWasmAbi for &String

Source§

fn null() -> Self::MaybeAbi

Source§

impl NullableIntoWasmAbi for &str

Source§

fn null() -> Self::MaybeAbi

Source§

impl NullableIntoWasmAbi for String

Source§

fn null() -> Self::MaybeAbi

Source§

impl NullableIntoWasmAbi for bool

Source§

fn null() -> Self::MaybeAbi

Source§

impl NullableIntoWasmAbi for char

Source§

fn null() -> Self::MaybeAbi

Source§

impl NullableIntoWasmAbi for f32

Source§

impl NullableIntoWasmAbi for f64

Source§

fn null() -> MaybeAbi<f64>

Source§

impl NullableIntoWasmAbi for i8

Source§

fn null() -> Self::MaybeAbi

Source§

impl NullableIntoWasmAbi for i16

Source§

fn null() -> Self::MaybeAbi

Source§

impl NullableIntoWasmAbi for i32

Source§

impl NullableIntoWasmAbi for i64

Source§

fn null() -> MaybeAbi<i64>

Source§

impl NullableIntoWasmAbi for i128

Source§

fn null() -> MaybeAbi<i128>

Source§

impl NullableIntoWasmAbi for isize

Source§

impl NullableIntoWasmAbi for u8

Source§

fn null() -> Self::MaybeAbi

Source§

impl NullableIntoWasmAbi for u16

Source§

fn null() -> Self::MaybeAbi

Source§

impl NullableIntoWasmAbi for u32

Source§

impl NullableIntoWasmAbi for u64

Source§

fn null() -> MaybeAbi<u64>

Source§

impl NullableIntoWasmAbi for u128

Source§

fn null() -> MaybeAbi<u128>

Source§

impl NullableIntoWasmAbi for usize

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [MaybeUninit<f32>]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [MaybeUninit<f64>]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [MaybeUninit<i8>]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [MaybeUninit<i16>]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [MaybeUninit<i32>]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [MaybeUninit<i64>]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [MaybeUninit<isize>]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [MaybeUninit<u8>]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [MaybeUninit<u16>]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [MaybeUninit<u32>]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [MaybeUninit<u64>]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [MaybeUninit<usize>]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [f32]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [f64]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [i8]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [i16]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [i32]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [i64]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [isize]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [u8]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [u16]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [u32]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [u64]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<'a> NullableIntoWasmAbi for &'a mut [usize]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<T: VectorRefIntoWasmAbi> NullableIntoWasmAbi for &[T]

Source§

fn null() -> Self::MaybeAbi

Source§

impl<T> NullableIntoWasmAbi for *const T

Source§

impl<T> NullableIntoWasmAbi for *mut T

Source§

impl<T> NullableIntoWasmAbi for Box<[T]>
where Self: IntoWasmAbi<Abi = WasmSlice>,

Source§

fn null() -> Self::MaybeAbi

Source§

impl<T> NullableIntoWasmAbi for Vec<T>
where Box<[T]>: IntoWasmAbi<Abi = WasmSlice>,

Source§

fn null() -> Self::MaybeAbi

Implementors§

Source§

impl NullableIntoWasmAbi for &JsValue

Source§

impl NullableIntoWasmAbi for JsValue

Source§

impl NullableIntoWasmAbi for Null

Source§

impl NullableIntoWasmAbi for Undefined

Source§

impl<'__wbg_ref, T> NullableIntoWasmAbi for &'__wbg_ref JsNullable<T>

Source§

impl<'__wbg_ref, T> NullableIntoWasmAbi for &'__wbg_ref JsOption<T>

Source§

impl<'__wbg_ref> NullableIntoWasmAbi for &'__wbg_ref Null

Source§

impl<'__wbg_ref> NullableIntoWasmAbi for &'__wbg_ref Undefined

Source§

impl<T> NullableIntoWasmAbi for &ScopedClosure<'_, T>
where T: WasmClosure + ?Sized,

Source§

impl<T> NullableIntoWasmAbi for JsNullable<T>

Source§

impl<T> NullableIntoWasmAbi for JsOption<T>

Source§

impl<T> NullableIntoWasmAbi for ScopedClosure<'static, T>
where T: WasmClosure + ?Sized,