[][src]Enum nature_common::State

pub enum State {
    Mutex(Vec<State>),
    Normal(String),
    Parent(StringVec<State>),
}

The structure for defined state in meta

Variants

Mutex(Vec<State>)
Normal(String)
Parent(StringVec<State>)

Methods

impl State[src]

pub fn states_to_string(states: &States, separator: &str) -> String[src]

pub fn string_to_states(states: &str) -> Result<(States, usize)>[src]

pub fn include(&self, another: &State) -> bool[src]

pub fn has_name(&self, name: &str) -> bool[src]

pub fn get_name(&self) -> String[src]

Trait Implementations

impl Clone for State[src]

impl Debug for State[src]

impl<'de> Deserialize<'de> for State[src]

impl Eq for State[src]

impl Hash for State[src]

impl Ord for State[src]

impl PartialEq<State> for State[src]

impl PartialOrd<State> for State[src]

impl Serialize for State[src]

impl StructuralEq for State[src]

impl StructuralPartialEq for State[src]

impl ToString for State[src]

Auto Trait Implementations

impl RefUnwindSafe for State

impl Send for State

impl Sync for State

impl Unpin for State

impl UnwindSafe for State

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,