Type Alias tc_state::collection::Collection

source ·
pub type Collection = Collection<Txn, CacheBlock>;
Expand description

A collection such as a Table or Tensor

Aliased Type§

enum Collection {
    BTree(BTree<Txn<State>, CacheBlock>),
    Table(Table<Txn<State>, CacheBlock>),
    Tensor(Tensor<Txn<State>, CacheBlock>),
}

Variants§

Trait Implementations§

source§

impl TryCastFrom<State> for Collection

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.
source§

impl TryFrom<State> for Collection

§

type Error = TCError

The type returned in the event of a conversion error.
source§

fn try_from(state: State) -> TCResult<Collection>

Performs the conversion.