pub struct Language<N: NestedValue> {
Show 39 fields pub LIT_27_BOOLEAN: N, pub LIT_32_BYTE_STRING: N, pub LIT_37_DICTIONARY: N, pub LIT_29_DOUBLE: N, pub LIT_38_EMBEDDED: N, pub LIT_28_FLOAT: N, pub LIT_34_RECORD: N, pub LIT_35_SEQUENCE: N, pub LIT_36_SET: N, pub LIT_30_SIGNED_INTEGER: N, pub LIT_31_STRING: N, pub LIT_33_SYMBOL: N, pub LIT_26_AND: N, pub LIT_6_ANNOTATIONS: N, pub LIT_2_AT: N, pub LIT_17_COMPARE: N, pub LIT_23_COUNT: N, pub LIT_1_DESCENDANTS: N, pub LIT_7_EMBEDDED: N, pub LIT_10_EQ: N, pub LIT_13_GE: N, pub LIT_14_GT: N, pub LIT_21_INT: N, pub LIT_4_KEYS: N, pub LIT_22_KIND: N, pub LIT_3_LABEL: N, pub LIT_15_LE: N, pub LIT_5_LENGTH: N, pub LIT_12_LT: N, pub LIT_11_NE: N, pub LIT_16_NOP: N, pub LIT_24_NOT: N, pub LIT_25_OR: N, pub LIT_8_PARSE: N, pub LIT_20_REAL: N, pub LIT_18_REGEX: N, pub LIT_19_TEST: N, pub LIT_9_UNPARSE: N, pub LIT_0_VALUES: N,
}

Fields§

§LIT_27_BOOLEAN: N§LIT_32_BYTE_STRING: N§LIT_37_DICTIONARY: N§LIT_29_DOUBLE: N§LIT_38_EMBEDDED: N§LIT_28_FLOAT: N§LIT_34_RECORD: N§LIT_35_SEQUENCE: N§LIT_36_SET: N§LIT_30_SIGNED_INTEGER: N§LIT_31_STRING: N§LIT_33_SYMBOL: N§LIT_26_AND: N§LIT_6_ANNOTATIONS: N§LIT_2_AT: N§LIT_17_COMPARE: N§LIT_23_COUNT: N§LIT_1_DESCENDANTS: N§LIT_7_EMBEDDED: N§LIT_10_EQ: N§LIT_13_GE: N§LIT_14_GT: N§LIT_21_INT: N§LIT_4_KEYS: N§LIT_22_KIND: N§LIT_3_LABEL: N§LIT_15_LE: N§LIT_5_LENGTH: N§LIT_12_LT: N§LIT_11_NE: N§LIT_16_NOP: N§LIT_24_NOT: N§LIT_25_OR: N§LIT_8_PARSE: N§LIT_20_REAL: N§LIT_18_REGEX: N§LIT_19_TEST: N§LIT_9_UNPARSE: N§LIT_0_VALUES: N

Trait Implementations§

source§

impl<N: NestedValue> Default for Language<N>

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<N> RefUnwindSafe for Language<N>
where N: RefUnwindSafe,

§

impl<N> Send for Language<N>
where N: Send,

§

impl<N> Sync for Language<N>
where N: Sync,

§

impl<N> Unpin for Language<N>
where N: Unpin,

§

impl<N> UnwindSafe for Language<N>
where N: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<L, N> Codec<N> for L
where N: NestedValue,

source§

fn parse<'a, T>(&'a self, value: &N) -> Result<T, ParseError>
where T: Parse<&'a L, N>,

Delegates to T::parse, using self as language and the given value as input.
source§

fn unparse<'a, T>(&'a self, value: &T) -> N
where T: Unparse<&'a L, N>,

Delegates to value.unparse, using self as language.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.