Skip to main content

WasmAccessMemoryUtilUpperWith

Trait WasmAccessMemoryUtilUpperWith 

Source
pub trait WasmAccessMemoryUtilUpperWith<T>: FnOnce(T, *mut u8, *const u8, usize) + Sized {
    // Provided methods
    fn memcpy_upper_with<U>(self, t: T, offset: *mut U, data: &[U]) { ... }
    fn memcpy_upper_with_inline<U>(self, t: T, offset: *mut U, data: &[U]) { ... }
    fn memcpy_to_upper_with<U>(self, t: T, offset: &mut [U], src: *const U) { ... }
    fn memcpy_to_upper_with_inline<U>(
        self,
        t: T,
        offset: &mut [U],
        src: *const U,
    ) { ... }
    fn store_le_upper_with<U>(self, t: T, offset: *mut U, value: U) { ... }
    fn store_le_upper_with_inline<U>(self, t: T, offset: *mut U, value: U) { ... }
    fn load_le_upper_with<U: Debug + Copy>(self, t: T, offset: *const U) -> U { ... }
    fn load_le_upper_with_inline<U: Debug + Copy>(
        self,
        t: T,
        offset: *const U,
    ) -> U { ... }
}
Expand description

A trait providing generic upper-level memory operations for WASM access with an additional context parameter.

Provided Methods§

Source

fn memcpy_upper_with<U>(self, t: T, offset: *mut U, data: &[U])

Require memcpy_raw to be implemented.

Source

fn memcpy_upper_with_inline<U>(self, t: T, offset: *mut U, data: &[U])

Inlined version of memcpy_upper_with.

Source

fn memcpy_to_upper_with<U>(self, t: T, offset: &mut [U], src: *const U)

Require memcpy_to_raw to be implemented.

Source

fn memcpy_to_upper_with_inline<U>(self, t: T, offset: &mut [U], src: *const U)

Inlined version of memcpy_to_upper_with.

Source

fn store_le_upper_with<U>(self, t: T, offset: *mut U, value: U)

Require memcpy_raw to be implemented.

Source

fn store_le_upper_with_inline<U>(self, t: T, offset: *mut U, value: U)

Inline version of store_le_upper_with.

Source

fn load_le_upper_with<U: Debug + Copy>(self, t: T, offset: *const U) -> U

Require memcpy_to_raw to be implemented.

Source

fn load_le_upper_with_inline<U: Debug + Copy>(self, t: T, offset: *const U) -> U

Inline version of load_le_upper_with.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§