[−][src]Trait swim_mem::resident::ResidentFromCopy
A type that can initialize a new memory Lease
with a Resident
copy of a value.
Required methods
fn new_resident_layout(data: &T, meta: &M) -> Layout
Returns the memory layout for a resident with a copy 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
copy 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 copy of the given data
and meta
data.