pub struct MemoryContract {
pub allocation_pattern: AllocationPattern,
pub max_memory: Option<usize>,
pub alignment: Option<usize>,
pub locality: LocalityGuarantee,
pub gc_behavior: GcBehavior,
}
Expand description
Memory contract guarantees
Fields§
§allocation_pattern: AllocationPattern
Memory allocation pattern
max_memory: Option<usize>
Maximum memory usage
alignment: Option<usize>
Memory alignment requirements
locality: LocalityGuarantee
Memory locality guarantees
gc_behavior: GcBehavior
Garbage collection behavior
Trait Implementations§
Source§impl Clone for MemoryContract
impl Clone for MemoryContract
Source§fn clone(&self) -> MemoryContract
fn clone(&self) -> MemoryContract
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for MemoryContract
impl RefUnwindSafe for MemoryContract
impl Send for MemoryContract
impl Sync for MemoryContract
impl Unpin for MemoryContract
impl UnwindSafe for MemoryContract
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more