pub enum Transitions {
None,
Small(Vec<(PropertyKey, PropertyFlags, ShapeId)>),
Map(Box<HashMap<(PropertyKey, PropertyFlags), ShapeId, BuildHasherDefault<FxHasher>>>),
}Expand description
A shape’s outgoing transitions: a vector for up to four entries, a map beyond. Entries are weak: the collector drops those whose child died.
Variants§
None
Small(Vec<(PropertyKey, PropertyFlags, ShapeId)>)
Map(Box<HashMap<(PropertyKey, PropertyFlags), ShapeId, BuildHasherDefault<FxHasher>>>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transitions
impl RefUnwindSafe for Transitions
impl Send for Transitions
impl Sync for Transitions
impl Unpin for Transitions
impl UnsafeUnpin for Transitions
impl UnwindSafe for Transitions
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