pub struct Shape {
pub id: ShapeId,
pub properties: Vec<u32>,
pub parent: Option<ShapeId>,
pub property_count: u16,
}Expand description
A shape describes the ordered property layout of a HashMap.
Properties are identified by u32 “string IDs” (hashed property names).
The index of a property in the properties vec is its slot index for
direct access.
Fields§
§id: ShapeId§properties: Vec<u32>Ordered property names (as string IDs/hashes).
parent: Option<ShapeId>Parent shape in the transition chain (None for root).
property_count: u16Number of properties (== properties.len(), cached for speed).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnsafeUnpin for Shape
impl UnwindSafe for Shape
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