Struct WasmSlice

#[repr(C)]
pub struct WasmSlice { pub ptr: WasmWord, pub len: WasmWord }

⚠️ 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.

Fields

ptr: WasmWord
len: WasmWord

Implementations

impl WasmSlice

fn from_usize(ptr: usize, len: usize) -> Self

Trait Implementations

impl Clone for WasmSlice

fn clone(&self) -> Self

impl Copy for WasmSlice

impl WasmAbi for WasmSlice

type Prim1 = <WasmWord as WasmAbi>::Prim1;

self.ptr

type Prim2 = <WasmWord as WasmAbi>::Prim1;

self.len

type Prim3 = ();
type Prim4 = ();
fn split(self) -> (Self::Prim1, Self::Prim2, (), ())
fn join(ptr: Self::Prim1, len: Self::Prim2, (), ()) -> Self

Auto Trait Implementations

impl Freeze for WasmSlice

impl RefUnwindSafe for WasmSlice

impl Send for WasmSlice

impl Sync for WasmSlice

impl Unpin for WasmSlice

impl UnsafeUnpin for WasmSlice

impl UnwindSafe for WasmSlice

Blanket Implementations

impl<S, T> Upcast<T> for WasmSlice where T: UpcastFrom<S> + ?Sized, S: ?Sized,

impl<T> Any for WasmSlice where T: 'static + ?Sized,

impl<T> Borrow<T> for WasmSlice where T: ?Sized,

impl<T> BorrowMut<T> for WasmSlice where T: ?Sized,

impl<T> CloneToUninit for WasmSlice where T: Clone,

impl<T> From<T> for WasmSlice

impl<T> ToOwned for WasmSlice where T: Clone,

impl<T, U> Into<U> for WasmSlice where U: From<T>,

impl<T, U> TryFrom<U> for WasmSlice where U: Into<T>,

impl<T, U> TryInto<U> for WasmSlice where U: TryFrom<T>,