pub type CollectionBase = CollectionBase<Txn, CacheBlock>;
Expand description

The base type of a Collection

Aliased Type§

enum CollectionBase {
    BTree(BTreeFile<Txn<State>, CacheBlock>),
    Table(TableFile<Txn<State>, CacheBlock>),
    Tensor(TensorBase<Txn<State>, CacheBlock>),
}

Variants§

Trait Implementations§

source§

impl TryCastFrom<State> for CollectionBase

source§

fn can_cast_from(state: &State) -> bool

Test if value can be cast into Self.
source§

fn opt_cast_from(state: State) -> Option<Self>

Returns Some(Self) if the source value can be cast into Self, otherwise None.
source§

fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err>
where OnErr: FnOnce(&T) -> Err,

Returns Ok(Self) if the source value can be cast into Self, otherwise calls on_err.