pub trait Flavor {
type Error;
type Index: Index<Length = Self::Length>;
type Length: Length;
type Width: Width<Pointer = Self::Pointer>;
type Pointer: Pointer;
type Storage<T>: Storage<T, Error = Self::Error>;
type Indexes: Storage<TreeIndex<Self>, Error = Self::Error>;
}
Expand description
The flavor of a tree.
This should not be implemented directly, instead see the flavor! macro.
The Index associated type is constrained by the Index trait, and determines the numerical bounds of spans the tree.
The Width
associated type determines the bounds of pointers in the tree
through the Width trait, this decides how many elements that can be stored
in the tree.
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.