Trait b_table::IndexSchema

source ·
pub trait IndexSchema: BTreeSchema + Clone + Send + Sync + 'static {
    type Id: Hash + Eq + Clone + Debug + Display + 'static;

    // Required method
    fn columns(&self) -> &[Self::Id];

    // Provided method
    fn supports(&self, range: &Range<Self::Id, Self::Value>) -> bool { ... }
}
Expand description

The schema of a table index

Required Associated Types§

source

type Id: Hash + Eq + Clone + Debug + Display + 'static

Required Methods§

source

fn columns(&self) -> &[Self::Id]

Borrow the list of columns specified by this schema.

Provided Methods§

source

fn supports(&self, range: &Range<Self::Id, Self::Value>) -> bool

Return true if an index with this schema supports the given Range.

Object Safety§

This trait is not object safe.

Implementors§