Enum tinychain::state::State [−][src]
pub enum State { Collection(Collection), Chain(Chain), Map(Map<Self>), Object(Object), Scalar(Scalar), Tuple(Tuple<Self>), }
An addressable state with a discrete value per-transaction.
Variants
Collection(Collection)
Chain(Chain)
Map(Map<Self>)
Object(Object)
Scalar(Scalar)
Tuple(Tuple<Self>)
Implementations
impl State
[src]
impl State
[src]Trait Implementations
impl From<Collection> for State
[src]
impl From<Collection> for State
[src]fn from(collection: Collection) -> Self
[src]
impl<T: Instance> From<InstanceExt<T>> for State where
State: From<T>,
[src]
impl<T: Instance> From<InstanceExt<T>> for State where
State: From<T>,
[src]fn from(instance: InstanceExt<T>) -> State
[src]
impl FromStream for State
[src]
impl FromStream for State
[src]type Context = Txn
The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
fn from_stream<'life0, 'async_trait, D: Decoder>(
txn: Txn,
decoder: &'life0 mut D
) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>> where
D: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
txn: Txn,
decoder: &'life0 mut D
) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>> where
D: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
impl<T: Clone + TryCastFrom<State>> TryCastFrom<State> for Map<T>
[src]
impl<T: Clone + TryCastFrom<State>> TryCastFrom<State> for Map<T>
[src]fn can_cast_from(state: &State) -> bool
[src]
fn opt_cast_from(state: State) -> Option<Self>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
impl TryCastFrom<State> for IdRef
[src]
impl TryCastFrom<State> for IdRef
[src]fn can_cast_from(state: &State) -> bool
[src]
fn opt_cast_from(state: State) -> Option<Self>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
impl TryCastFrom<State> for Link
[src]
impl TryCastFrom<State> for Link
[src]fn can_cast_from(state: &State) -> bool
[src]
fn opt_cast_from(state: State) -> Option<Self>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
impl TryCastFrom<State> for OpDef
[src]
impl TryCastFrom<State> for OpDef
[src]fn can_cast_from(state: &State) -> bool
[src]
fn opt_cast_from(state: State) -> Option<Self>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
impl TryCastFrom<State> for OpRef
[src]
impl TryCastFrom<State> for OpRef
[src]fn can_cast_from(state: &State) -> bool
[src]
fn opt_cast_from(state: State) -> Option<Self>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
impl TryCastFrom<State> for Scalar
[src]
impl TryCastFrom<State> for Scalar
[src]fn can_cast_from(state: &State) -> bool
[src]
fn opt_cast_from(state: State) -> Option<Self>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
impl TryCastFrom<State> for Value
[src]
impl TryCastFrom<State> for Value
[src]fn can_cast_from(state: &State) -> bool
[src]
fn opt_cast_from(state: State) -> Option<Self>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
Auto Trait Implementations
impl !RefUnwindSafe for State
impl !RefUnwindSafe for State
impl !UnwindSafe for State
impl !UnwindSafe for State
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]pub fn can_cast_from(&F) -> bool
[src]
pub fn opt_cast_from(f: F) -> Option<T>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]pub fn can_cast_into(&self) -> bool
[src]
pub fn opt_cast_into(self) -> Option<T>
[src]
pub fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
[src]
OnErr: FnOnce(&Self) -> Err,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,