Struct wasmer::WasmSliceAccess
source · pub struct WasmSliceAccess<'a, T>where
T: ValueType,{ /* private fields */ }
Expand description
Provides direct memory access to a piece of memory that is owned by WASM
Implementations§
source§impl<'a, T> WasmSliceAccess<'a, T>where
T: ValueType,
impl<'a, T> WasmSliceAccess<'a, T>where
T: ValueType,
source§impl<'a> WasmSliceAccess<'a, u8>
impl<'a> WasmSliceAccess<'a, u8>
sourcepub fn copy_from_slice(&mut self, src: &[u8])
pub fn copy_from_slice(&mut self, src: &[u8])
Writes to the address pointed to by this WasmPtr
in a memory.
source§impl<'a, T> WasmSliceAccess<'a, T>where
T: ValueType,
impl<'a, T> WasmSliceAccess<'a, T>where
T: ValueType,
sourcepub fn as_mut_uninit(&mut self) -> &mut [MaybeUninit<T>]
pub fn as_mut_uninit(&mut self) -> &mut [MaybeUninit<T>]
Returns a mutable slice that is not yet initialized
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for WasmSliceAccess<'a, T>where
T: RefUnwindSafe,
impl<'a, T> !Send for WasmSliceAccess<'a, T>
impl<'a, T> !Sync for WasmSliceAccess<'a, T>
impl<'a, T> Unpin for WasmSliceAccess<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for WasmSliceAccess<'a, T>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.