Skip to main content

Block

Trait Block 

Source
pub trait Block<V> {
    type Key;

    // Required methods
    fn bisect<C, BV>(
        &self,
        range: &Range<BV>,
        collator: &Collator<C>,
    ) -> (usize, usize)
       where C: Collate<Value = V>,
             BV: Borrow<V>;
    fn bisect_left<C, BV>(&self, key: &[BV], collator: &Collator<C>) -> usize
       where C: Collate<Value = V>,
             BV: Borrow<V>;
    fn bisect_right<C, BV>(&self, key: &[BV], collator: &Collator<C>) -> usize
       where C: Collate<Value = V>,
             BV: Borrow<V>;
}
Expand description

An ordered set of keys in a Node.

Required Associated Types§

Required Methods§

Source

fn bisect<C, BV>( &self, range: &Range<BV>, collator: &Collator<C>, ) -> (usize, usize)
where C: Collate<Value = V>, BV: Borrow<V>,

Source

fn bisect_left<C, BV>(&self, key: &[BV], collator: &Collator<C>) -> usize
where C: Collate<Value = V>, BV: Borrow<V>,

Source

fn bisect_right<C, BV>(&self, key: &[BV], collator: &Collator<C>) -> usize
where C: Collate<Value = V>, BV: Borrow<V>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<V: Debug> Block<V> for Vec<Vec<V>>

Source§

type Key = Vec<V>

Source§

fn bisect<C, BV>( &self, range: &Range<BV>, collator: &Collator<C>, ) -> (usize, usize)
where C: Collate<Value = V>, BV: Borrow<V>,

Source§

fn bisect_left<C, BV>(&self, key: &[BV], collator: &Collator<C>) -> usize
where C: Collate<Value = V>, BV: Borrow<V>,

Source§

fn bisect_right<C, BV>(&self, key: &[BV], collator: &Collator<C>) -> usize
where C: Collate<Value = V>, BV: Borrow<V>,

Implementors§