#[repr(i32)]pub enum Format {
InvalidFormat = 0,
Dense = 1,
Sparse = 2,
}
Expand description
A format specifies the method used by a layout to store an array in memory.
Variants§
InvalidFormat = 0
TODO(b/120869032): Rename this to FORMAT_NONE or something else which better corresponds to its meaning.
Dense = 1
The default layout, with exactly one storage location per element.
Sparse = 2
A sparsely encoded layout, providing only the index/value pairs of non-zero elements.
Implementations§
Trait Implementations§
Source§impl Ord for Format
impl Ord for Format
Source§impl PartialOrd for Format
impl PartialOrd for Format
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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