pub enum AllocationKind {
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 AllocationKind
impl Clone for AllocationKind
Source§fn clone(&self) -> AllocationKind
fn clone(&self) -> AllocationKind
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 AllocationKind
impl Debug for AllocationKind
Source§impl Hash for AllocationKind
impl Hash for AllocationKind
Source§impl PartialEq for AllocationKind
impl PartialEq for AllocationKind
impl Copy for AllocationKind
impl Eq for AllocationKind
impl StructuralPartialEq for AllocationKind
Auto Trait Implementations§
impl Freeze for AllocationKind
impl RefUnwindSafe for AllocationKind
impl Send for AllocationKind
impl Sync for AllocationKind
impl Unpin for AllocationKind
impl UnwindSafe for AllocationKind
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.