pub trait BTreeInstance: Clone + Instance {
    type Slice: BTreeInstance;

    fn collator(&self) -> &ValueCollator;
    fn schema(&self) -> &RowSchema;
    fn slice(self, range: Range, reverse: bool) -> TCResult<Self::Slice>;
    fn is_empty<'life0, 'async_trait>(
        &'life0 self,
        txn_id: TxnId
    ) -> Pin<Box<dyn Future<Output = TCResult<bool>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn keys<'a, 'async_trait>(
        self,
        txn_id: TxnId
    ) -> Pin<Box<dyn Future<Output = TCResult<TCBoxTryStream<'a, Key>>> + Send + 'async_trait>>
    where
        Self: 'a + 'async_trait,
        'a: 'async_trait
; fn validate_key(&self, key: Key) -> TCResult<Key>; fn count<'life0, 'async_trait>(
        &'life0 self,
        txn_id: TxnId
    ) -> Pin<Box<dyn Future<Output = TCResult<u64>> + Send + 'async_trait>>
    where
        Self: Sync + 'async_trait,
        'life0: 'async_trait
, { ... } }
Expand description

Common BTree methods.

Required Associated Types§

Required Methods§

Borrow this BTree’s collator.

Borrow to this BTree’s schema.

Return a slice of this BTree with the given range.

Return true if this BTree has no Keys.

Return a Stream of this BTree’s Keys.

Return an error if the given key does not match this BTree’s schema

If the key is valid, this will return a copy with the data types correctly casted.

Provided Methods§

Return the number of Keys in this BTree.

Implementors§