Trait preserves_schema::support::Unparse

source ·
pub trait Unparse<L, Value: NestedValue> {
    // Required method
    fn unparse(&self, language: L) -> Value;
}
Expand description

Implementors of Unparse can convert themselves into a Value, given a supporting language. All Schema-compiler-produced types implement Unparse.

Required Methods§

source

fn unparse(&self, language: L) -> Value

Encode self into a Value (using auxiliary structure from the language instance).

Implementors§

source§

impl<'a, T: NestedValueCodec, Value: NestedValue> Unparse<&'a T, Value> for Value

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for AtomKind

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for CompoundPattern<_Value>

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for Definition<_Value>

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for EmbeddedTypeName

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for NamedPattern<_Value>

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for NamedSimplePattern<_Value>

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for Pattern<_Value>

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for SimplePattern<_Value>

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for Binding<_Value>

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for Bundle<_Value>

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for Definitions<_Value>

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for DictionaryEntries<_Value>

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for ModulePath

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for Modules<_Value>

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for NamedAlternative<_Value>

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for Ref

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for Schema<_Value>

source§

impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for Version