Struct pax_kit::pax_chassis_web::MemorySlice
source · pub struct MemorySlice { /* private fields */ }Implementations§
Trait Implementations§
source§impl From<MemorySlice> for JsValue
impl From<MemorySlice> for JsValue
source§fn from(value: MemorySlice) -> JsValue
fn from(value: MemorySlice) -> JsValue
Converts to this type from the input type.
source§impl FromWasmAbi for MemorySlice
impl FromWasmAbi for MemorySlice
source§impl IntoWasmAbi for MemorySlice
impl IntoWasmAbi for MemorySlice
source§impl LongRefFromWasmAbi for MemorySlice
impl LongRefFromWasmAbi for MemorySlice
source§type Anchor = RcRef<MemorySlice>
type Anchor = RcRef<MemorySlice>
Same as
RefFromWasmAbi::Anchorsource§unsafe fn long_ref_from_abi(
js: <MemorySlice as LongRefFromWasmAbi>::Abi,
) -> <MemorySlice as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <MemorySlice as LongRefFromWasmAbi>::Abi, ) -> <MemorySlice as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abisource§impl OptionFromWasmAbi for MemorySlice
impl OptionFromWasmAbi for MemorySlice
source§fn is_none(abi: &<MemorySlice as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<MemorySlice as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None, and otherwise it will be passed to
FromWasmAbi.source§impl OptionIntoWasmAbi for MemorySlice
impl OptionIntoWasmAbi for MemorySlice
source§fn none() -> <MemorySlice as IntoWasmAbi>::Abi
fn none() -> <MemorySlice as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None branch of this option. Read moresource§impl RefFromWasmAbi for MemorySlice
impl RefFromWasmAbi for MemorySlice
source§type Anchor = RcRef<MemorySlice>
type Anchor = RcRef<MemorySlice>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§unsafe fn ref_from_abi(
js: <MemorySlice as RefFromWasmAbi>::Abi,
) -> <MemorySlice as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <MemorySlice as RefFromWasmAbi>::Abi, ) -> <MemorySlice as RefFromWasmAbi>::Anchor
source§impl RefMutFromWasmAbi for MemorySlice
impl RefMutFromWasmAbi for MemorySlice
source§type Anchor = RcRefMut<MemorySlice>
type Anchor = RcRefMut<MemorySlice>
Same as
RefFromWasmAbi::Anchorsource§unsafe fn ref_mut_from_abi(
js: <MemorySlice as RefMutFromWasmAbi>::Abi,
) -> <MemorySlice as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <MemorySlice as RefMutFromWasmAbi>::Abi, ) -> <MemorySlice as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abisource§impl TryFromJsValue for MemorySlice
impl TryFromJsValue for MemorySlice
source§fn try_from_js_value(
value: JsValue,
) -> Result<MemorySlice, <MemorySlice as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<MemorySlice, <MemorySlice as TryFromJsValue>::Error>
Performs the conversion.
source§impl VectorFromWasmAbi for MemorySlice
impl VectorFromWasmAbi for MemorySlice
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <MemorySlice as VectorFromWasmAbi>::Abi, ) -> Box<[MemorySlice]>
source§impl VectorIntoWasmAbi for MemorySlice
impl VectorIntoWasmAbi for MemorySlice
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[MemorySlice]>, ) -> <MemorySlice as VectorIntoWasmAbi>::Abi
Auto Trait Implementations§
impl Freeze for MemorySlice
impl RefUnwindSafe for MemorySlice
impl !Send for MemorySlice
impl !Sync for MemorySlice
impl Unpin for MemorySlice
impl UnwindSafe for MemorySlice
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abisource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.