Type Alias tc_state::chain::BlockChain

source ·
pub type BlockChain<T> = BlockChain<State, T>;

Aliased Type§

struct BlockChain<T> { /* private fields */ }

Trait Implementations§

source§

impl TryCastFrom<State> for BlockChain<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.