[][src]Trait swim_mem::resident::ResidentFromCloneUnchecked

pub trait ResidentFromCloneUnchecked<L: Lease, T: ?Sized, M = ()>: Resident {
    fn new_resident_layout(data: &T, meta: &M) -> Layout;
fn new_resident_ptr(raw: *mut u8, data: &T, meta: &M) -> *mut Self::Data;
fn new_resident(lease: &mut L, data: &T, meta: M); }

A type that can initialize a new memory Lease with an unchecked Resident clone of a value.

Required methods

fn new_resident_layout(data: &T, meta: &M) -> Layout

Returns the memory layout for a resident with a clone of the given data and meta data.

fn new_resident_ptr(raw: *mut u8, data: &T, meta: &M) -> *mut Self::Data

Converts a raw pointer into a Data pointer for a resident with a clone of the given data and meta data.

fn new_resident(lease: &mut L, data: &T, meta: M)

Initializes the lease with a resident from a clone of the given data and meta data.

Loading content...

Implementors

Loading content...