#[non_exhaustive]pub struct FlavorDefault;Expand description
The default flavor of a tree.
This corresponds to a u32 index with a u32 width.
A u32 width keeps entries small, on 64-bit targets with a 2-byte T
a token takes 12 rather than 16 bytes and a node 40 rather than 72, but
bounds a tree to about 4 billion tokens and as many nodes. Adding more
fails with Error::Overflow. A tree which needs more can declare a
flavor with type Width = usize; through flavor!.
Trait Implementations§
Source§impl Clone for FlavorDefault
impl Clone for FlavorDefault
impl Copy for FlavorDefault
Source§impl Debug for FlavorDefault
impl Debug for FlavorDefault
impl Eq for FlavorDefault
Source§impl Flavor for FlavorDefault
impl Flavor for FlavorDefault
Source§impl Hash for FlavorDefault
impl Hash for FlavorDefault
Source§impl PartialEq for FlavorDefault
impl PartialEq for FlavorDefault
impl StructuralPartialEq for FlavorDefault
Auto Trait Implementations§
impl Forget for FlavorDefault
impl Freeze for FlavorDefault
impl Move for FlavorDefault
impl RefUnwindSafe for FlavorDefault
impl Send for FlavorDefault
impl Sync for FlavorDefault
impl Unpin for FlavorDefault
impl UnsafeUnpin for FlavorDefault
impl UnwindSafe for FlavorDefault
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