Enum wasm_bindgen::convert::WasmOption
source · #[repr(C, u32)]pub enum WasmOption<T: WasmAbi> {
None,
Some(T),
}
Variants§
Implementations§
source§impl<Abi: WasmAbi> WasmOption<Abi>
impl<Abi: WasmAbi> WasmOption<Abi>
pub fn from_option<T: IntoWasmAbi<Abi = Abi>>(option: Option<T>) -> Self
pub unsafe fn into_option<T: FromWasmAbi<Abi = Abi>>(v: Self) -> Option<T>
Trait Implementations§
impl<T: WasmAbi> WasmAbi for WasmOption<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for WasmOption<T>where T: RefUnwindSafe,
impl<T> Send for WasmOption<T>where T: Send,
impl<T> Sync for WasmOption<T>where T: Sync,
impl<T> Unpin for WasmOption<T>where T: Unpin,
impl<T> UnwindSafe for WasmOption<T>where T: UnwindSafe,
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