pub struct Shape {
pub parent: Option<ShapeId>,
pub key: PropertyKey,
pub flags: PropertyFlags,
pub slot: u32,
pub count: u32,
pub width: u32,
pub prototype: Option<ObjectId>,
pub kind: ObjectKind,
pub transitions: Transitions,
pub table: OnceCell<Box<HashMap<PropertyKey, (u32, PropertyFlags), BuildHasherDefault<FxHasher>>>>,
pub validity: ValidityCellId,
pub dictionary: Option<Box<Dictionary>>,
}Fields§
§parent: Option<ShapeId>Transition-tree parent; None for roots and dictionary shapes.
key: PropertyKeyThe property this node adds (meaningless when count == 0).
flags: PropertyFlags§slot: u32§count: u32Properties up to and including this node.
width: u32Slots used up to and including this node: count plus one per
accessor, whose getter and setter take two.
prototype: Option<ObjectId>§kind: ObjectKind§transitions: Transitions§table: OnceCell<Box<HashMap<PropertyKey, (u32, PropertyFlags), BuildHasherDefault<FxHasher>>>>Key → (slot, flags), built on the first lookup past
TABLE_THRESHOLD properties.
validity: ValidityCellIdThe prototype’s validity cell as last seen, or NONE.
dictionary: Option<Box<Dictionary>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Shape
impl !RefUnwindSafe for Shape
impl !Sync for Shape
impl Send 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