#[non_exhaustive]pub enum StorageMode {
Dense,
Sparse {
missing: MissingPolicy,
},
}Expand description
Physical storage mode for a property layer.
§Performance
Copying, comparing, and debug-formatting are O(1).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dense
Dense array with one slot per ID index.
Sparse
Sparse array keyed by explicit indexes plus a missing-value policy.
Fields
§
missing: MissingPolicyPolicy used for indexes not present in the sparse index array.
Trait Implementations§
Source§impl Clone for StorageMode
impl Clone for StorageMode
Source§fn clone(&self) -> StorageMode
fn clone(&self) -> StorageMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StorageMode
Source§impl Debug for StorageMode
impl Debug for StorageMode
impl Eq for StorageMode
Source§impl Hash for StorageMode
impl Hash for StorageMode
Source§impl Ord for StorageMode
impl Ord for StorageMode
Source§fn cmp(&self, other: &StorageMode) -> Ordering
fn cmp(&self, other: &StorageMode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StorageMode
impl PartialEq for StorageMode
Source§fn eq(&self, other: &StorageMode) -> bool
fn eq(&self, other: &StorageMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StorageMode
impl PartialOrd for StorageMode
impl StructuralPartialEq for StorageMode
Auto Trait Implementations§
impl Freeze for StorageMode
impl RefUnwindSafe for StorageMode
impl Send for StorageMode
impl Sync for StorageMode
impl Unpin for StorageMode
impl UnsafeUnpin for StorageMode
impl UnwindSafe for StorageMode
Blanket Implementations§
impl<T> Allocation for T
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