Trait tycho::ElementUtil[][src]

pub trait ElementUtil {
    fn unit() -> Self;
fn value<T: Into<Value>>(value: T) -> Self;
fn option<T: Into<Element>>(inner: Option<T>) -> Self;
fn none() -> Self;
fn some<T: Into<Element>>(inner: T) -> Self;
fn array<A: Into<TychoArray>>(array: A) -> Self;
fn list<A: Into<TychoList<T>>, T: Into<Value>>(array: A) -> Self;
fn structure(structure: TychoStruct) -> Self;
fn map<K: Into<Value> + Hash + Eq, V: Into<Element>>(
        map: TychoMap<K, V>
    ) -> Self;
fn variant<V: Into<Element>>(name: &str, value: V) -> Self; }

Required methods

fn unit() -> Self[src]

fn value<T: Into<Value>>(value: T) -> Self[src]

fn option<T: Into<Element>>(inner: Option<T>) -> Self[src]

fn none() -> Self[src]

fn some<T: Into<Element>>(inner: T) -> Self[src]

fn array<A: Into<TychoArray>>(array: A) -> Self[src]

fn list<A: Into<TychoList<T>>, T: Into<Value>>(array: A) -> Self[src]

fn structure(structure: TychoStruct) -> Self[src]

fn map<K: Into<Value> + Hash + Eq, V: Into<Element>>(
    map: TychoMap<K, V>
) -> Self
[src]

fn variant<V: Into<Element>>(name: &str, value: V) -> Self[src]

Loading content...

Implementors

impl ElementUtil for Element[src]

Loading content...