Enum preserves_schema::gen::schema::CompoundPattern
source · pub enum CompoundPattern<_Value: NestedValue = IOValue> {
Rec {
label: Box<NamedPattern<_Value>>,
fields: Box<NamedPattern<_Value>>,
},
Tuple {
patterns: Vec<NamedPattern<_Value>>,
},
TuplePrefix {
fixed: Vec<NamedPattern<_Value>>,
variable: Box<NamedSimplePattern<_Value>>,
},
Dict {
entries: Box<DictionaryEntries<_Value>>,
},
}
Variants§
Rec
Tuple
Fields
§
patterns: Vec<NamedPattern<_Value>>
TuplePrefix
Dict
Fields
§
entries: Box<DictionaryEntries<_Value>>
Trait Implementations§
source§impl<_Value: Clone + NestedValue> Clone for CompoundPattern<_Value>
impl<_Value: Clone + NestedValue> Clone for CompoundPattern<_Value>
source§fn clone(&self) -> CompoundPattern<_Value>
fn clone(&self) -> CompoundPattern<_Value>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<_Value: Debug + NestedValue> Debug for CompoundPattern<_Value>
impl<_Value: Debug + NestedValue> Debug for CompoundPattern<_Value>
source§impl<_Value: NestedValue> Deserialize<_Value> for CompoundPattern<_Value>
impl<_Value: NestedValue> Deserialize<_Value> for CompoundPattern<_Value>
fn deserialize<'de, R: Reader<'de, _Value>>( r: &mut R ) -> Result<Self, ParseError>
source§impl<_Value: NestedValue> Domain for CompoundPattern<_Value>
impl<_Value: NestedValue> Domain for CompoundPattern<_Value>
source§impl<_Value: Hash + NestedValue> Hash for CompoundPattern<_Value>
impl<_Value: Hash + NestedValue> Hash for CompoundPattern<_Value>
source§impl<_Value: Ord + NestedValue> Ord for CompoundPattern<_Value>
impl<_Value: Ord + NestedValue> Ord for CompoundPattern<_Value>
source§fn cmp(&self, other: &CompoundPattern<_Value>) -> Ordering
fn cmp(&self, other: &CompoundPattern<_Value>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Parse<_L, _Value> for CompoundPattern<_Value>
impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Parse<_L, _Value> for CompoundPattern<_Value>
source§impl<_Value: PartialEq + NestedValue> PartialEq for CompoundPattern<_Value>
impl<_Value: PartialEq + NestedValue> PartialEq for CompoundPattern<_Value>
source§fn eq(&self, other: &CompoundPattern<_Value>) -> bool
fn eq(&self, other: &CompoundPattern<_Value>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<_Value: PartialOrd + NestedValue> PartialOrd for CompoundPattern<_Value>
impl<_Value: PartialOrd + NestedValue> PartialOrd for CompoundPattern<_Value>
source§fn partial_cmp(&self, other: &CompoundPattern<_Value>) -> Option<Ordering>
fn partial_cmp(&self, other: &CompoundPattern<_Value>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for CompoundPattern<_Value>
impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for CompoundPattern<_Value>
impl<_Value: Eq + NestedValue> Eq for CompoundPattern<_Value>
impl<_Value: NestedValue> StructuralPartialEq for CompoundPattern<_Value>
Auto Trait Implementations§
impl<_Value> Freeze for CompoundPattern<_Value>
impl<_Value> RefUnwindSafe for CompoundPattern<_Value>where
_Value: RefUnwindSafe,
impl<_Value> Send for CompoundPattern<_Value>where
_Value: Send,
impl<_Value> Sync for CompoundPattern<_Value>where
_Value: Sync,
impl<_Value> Unpin for CompoundPattern<_Value>
impl<_Value> UnwindSafe for CompoundPattern<_Value>where
_Value: RefUnwindSafe + UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more