Enum tycho::Element[][src]

pub enum Element {
    Unit,
    Value(Value),
    Option(Option<Box<Element>>),
    Array(Vec<Element>),
    Struct(HashMap<String, Element>),
    Variant(StringBox<Element>),
    Map(HashMap<Value, Element>),
    List(Vec<Value>),
}

A non-terminating value, structure or array.

Variants

Unit

An anonymous value containing no data.

Value(Value)

A primitive, terminating value.

Option(Option<Box<Element>>)

A Some/None Value

Array(Vec<Element>)

A variable type sequence of elements.

A variable type key-element map.

Variant(StringBox<Element>)

A variable element type with a given name.

A statically-typed value-element map.

List(Vec<Value>)

A statically-typed sequence of elements.

Trait Implementations

impl Clone for Element[src]

impl Debug for Element[src]

impl ElementUtil for Element[src]

impl Into<Element> for Value[src]

impl Into<Element> for TychoStruct[src]

impl<K: Into<Value> + Hash + Eq, V: Into<Element>> Into<Element> for TychoMap<K, V>[src]

impl Into<Element> for TychoArray[src]

impl<T: Into<Value>> Into<Element> for TychoList<T>[src]

impl ValueUtil for Element[src]

Auto Trait Implementations

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> 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, 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.