Enum preserves_schema::gen::schema::CompoundPattern [−][src]
pub enum CompoundPattern { Rec { label: Box<NamedPattern>, fields: Box<NamedPattern>, }, Tuple { patterns: Vec<NamedPattern>, }, TuplePrefix { fixed: Vec<NamedPattern>, variable: Box<NamedSimplePattern>, }, Dict { entries: Box<DictionaryEntries>, }, }
Variants
Fields of Rec
label: Box<NamedPattern>
fields: Box<NamedPattern>
Fields of Tuple
patterns: Vec<NamedPattern>
Fields of TuplePrefix
fixed: Vec<NamedPattern>
variable: Box<NamedSimplePattern>
Fields of Dict
entries: Box<DictionaryEntries>
Trait Implementations
impl<'de, R: Reader<'de, _Ptr, _Any>> Deserialize<'de, IOValue, IOValue, R> for CompoundPattern
impl<'de, R: Reader<'de, _Ptr, _Any>> Deserialize<'de, IOValue, IOValue, R> for CompoundPattern
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CompoundPattern
impl Send for CompoundPattern
impl Sync for CompoundPattern
impl Unpin for CompoundPattern
impl UnwindSafe for CompoundPattern
Blanket Implementations
Mutably borrows from an owned value. Read more