pub enum MemoryLayoutStrategy {
Contiguous,
Optimized,
}Expand description
Type of allocation, either contiguous or optimized (row-aligned when possible)
Variants§
Contiguous
Contiguous layout, with no padding
Optimized
Optimized for access speed. In practice this means row-aligned with padding for runtimes that support it.
Trait Implementations§
Source§impl Clone for MemoryLayoutStrategy
impl Clone for MemoryLayoutStrategy
Source§fn clone(&self) -> MemoryLayoutStrategy
fn clone(&self) -> MemoryLayoutStrategy
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 moreSource§impl Debug for MemoryLayoutStrategy
impl Debug for MemoryLayoutStrategy
Source§impl Hash for MemoryLayoutStrategy
impl Hash for MemoryLayoutStrategy
Source§impl PartialEq for MemoryLayoutStrategy
impl PartialEq for MemoryLayoutStrategy
impl Copy for MemoryLayoutStrategy
impl Eq for MemoryLayoutStrategy
impl StructuralPartialEq for MemoryLayoutStrategy
Auto Trait Implementations§
impl Freeze for MemoryLayoutStrategy
impl RefUnwindSafe for MemoryLayoutStrategy
impl Send for MemoryLayoutStrategy
impl Sync for MemoryLayoutStrategy
impl Unpin for MemoryLayoutStrategy
impl UnsafeUnpin for MemoryLayoutStrategy
impl UnwindSafe for MemoryLayoutStrategy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.