Struct preserves_schema::gen::Language

source ·
pub struct Language<N: NestedValue> {
Show 28 fields pub LIT_14_FALSE: N, pub LIT_27_1: N, pub LIT_0_BOOLEAN: N, pub LIT_4_BYTE_STRING: N, pub LIT_1_DOUBLE: N, pub LIT_2_SIGNED_INTEGER: N, pub LIT_3_STRING: N, pub LIT_5_SYMBOL: N, pub LIT_13_AND: N, pub LIT_20_ANY: N, pub LIT_21_ATOM: N, pub LIT_7_BUNDLE: N, pub LIT_17_DEFINITIONS: N, pub LIT_11_DICT: N, pub LIT_26_DICTOF: N, pub LIT_22_EMBEDDED: N, pub LIT_18_EMBEDDED_TYPE: N, pub LIT_23_LIT: N, pub LIT_6_NAMED: N, pub LIT_12_OR: N, pub LIT_8_REC: N, pub LIT_15_REF: N, pub LIT_16_SCHEMA: N, pub LIT_24_SEQOF: N, pub LIT_25_SETOF: N, pub LIT_9_TUPLE: N, pub LIT_10_TUPLE_PREFIX: N, pub LIT_19_VERSION: N,
}

Fields§

§LIT_14_FALSE: N§LIT_27_1: N§LIT_0_BOOLEAN: N§LIT_4_BYTE_STRING: N§LIT_1_DOUBLE: N§LIT_2_SIGNED_INTEGER: N§LIT_3_STRING: N§LIT_5_SYMBOL: N§LIT_13_AND: N§LIT_20_ANY: N§LIT_21_ATOM: N§LIT_7_BUNDLE: N§LIT_17_DEFINITIONS: N§LIT_11_DICT: N§LIT_26_DICTOF: N§LIT_22_EMBEDDED: N§LIT_18_EMBEDDED_TYPE: N§LIT_23_LIT: N§LIT_6_NAMED: N§LIT_12_OR: N§LIT_8_REC: N§LIT_15_REF: N§LIT_16_SCHEMA: N§LIT_24_SEQOF: N§LIT_25_SETOF: N§LIT_9_TUPLE: N§LIT_10_TUPLE_PREFIX: N§LIT_19_VERSION: 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> Freeze for Language<N>
where N: Freeze,

§

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.