#[repr(u8)]pub enum LayoutShape {
Scalar = 0,
FixedArray = 1,
RaggedArray = 2,
Tree = 3,
Graph = 4,
HashBucket = 5,
Sparse = 6,
UserDefined = 7,
}Expand description
Layout shape encoded in 3 bits.
Variants§
Scalar = 0
Single scalar value.
FixedArray = 1
Fixed-size array; length is implicit in the type ID.
RaggedArray = 2
Ragged / variable-length array (Vec-like).
Tree = 3
Tree node (recursive structure).
Graph = 4
Graph node (cyclic references).
HashBucket = 5
Hash table bucket.
Sparse = 6
Sparse / null-able slot.
UserDefined = 7
Reserved for caller-defined extensions.
Implementations§
Trait Implementations§
Source§impl Clone for LayoutShape
impl Clone for LayoutShape
Source§fn clone(&self) -> LayoutShape
fn clone(&self) -> LayoutShape
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 LayoutShape
Source§impl Debug for LayoutShape
impl Debug for LayoutShape
impl Eq for LayoutShape
Source§impl PartialEq for LayoutShape
impl PartialEq for LayoutShape
impl StructuralPartialEq for LayoutShape
Auto Trait Implementations§
impl Freeze for LayoutShape
impl RefUnwindSafe for LayoutShape
impl Send for LayoutShape
impl Sync for LayoutShape
impl Unpin for LayoutShape
impl UnsafeUnpin for LayoutShape
impl UnwindSafe for LayoutShape
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