pub trait Schema: Eq + Debug {
type Error: Error + From<Error>;
type Value: Clone + Eq + Send + Sync + Debug + 'static;
// Required methods
fn block_size(&self) -> usize;
fn len(&self) -> usize;
fn order(&self) -> usize;
fn validate(
&self,
key: Key<Self::Value>
) -> Result<Key<Self::Value>, Self::Error>;
}
Expand description
The schema of a B+Tree
Required Associated Types§
Required Methods§
sourcefn block_size(&self) -> usize
fn block_size(&self) -> usize
Get the maximum size in bytes of a leaf node in a B+Tree with this Schema
.