Trait 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.

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.

Implementors§