Trait StateInstance

Source
pub trait StateInstance:
    Default
    + Instance
    + Route<Self>
    + ToState<Self>
    + From<bool>
    + From<Number>
    + From<Value>
    + From<Map<Self>>
    + From<Tuple<Self>>
    + From<Self::Class>
    + From<Self::Closure>
    + Clone
    + Debug
    + 'static {
    type FE: ThreadSafe + Clone;
    type Txn: Transaction<Self::FE> + Gateway<Self>;
    type Closure: ClosureInstance<Self>;

    // Required methods
    fn is_map(&self) -> bool;
    fn is_tuple(&self) -> bool;
}

Required Associated Types§

Required Methods§

Source

fn is_map(&self) -> bool

Return true if this is a Map of states.

Source

fn is_tuple(&self) -> bool

Return true if this is a Tuple of states.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§