Enum preserves_schema::gen::schema::SimplePattern
source · pub enum SimplePattern<_Value: NestedValue = IOValue> {
Any,
Atom {
atom_kind: Box<AtomKind>,
},
Embedded {
interface: Box<SimplePattern<_Value>>,
},
Lit {
value: _Value,
},
Seqof {
pattern: Box<SimplePattern<_Value>>,
},
Setof {
pattern: Box<SimplePattern<_Value>>,
},
Dictof {
key: Box<SimplePattern<_Value>>,
value: Box<SimplePattern<_Value>>,
},
Ref(Box<Ref>),
}Variants§
Any
Atom
Embedded
Fields
§
interface: Box<SimplePattern<_Value>>Lit
Fields
§
value: _ValueSeqof
Fields
§
pattern: Box<SimplePattern<_Value>>Setof
Fields
§
pattern: Box<SimplePattern<_Value>>Dictof
Ref(Box<Ref>)
Trait Implementations§
source§impl<_Value: Clone + NestedValue> Clone for SimplePattern<_Value>
impl<_Value: Clone + NestedValue> Clone for SimplePattern<_Value>
source§fn clone(&self) -> SimplePattern<_Value>
fn clone(&self) -> SimplePattern<_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 SimplePattern<_Value>
impl<_Value: Debug + NestedValue> Debug for SimplePattern<_Value>
source§impl<_Value: NestedValue> Deserialize<_Value> for SimplePattern<_Value>
impl<_Value: NestedValue> Deserialize<_Value> for SimplePattern<_Value>
fn deserialize<'de, R: Reader<'de, _Value>>(
r: &mut R
) -> Result<Self, ParseError>
source§impl<_Value: NestedValue> Domain for SimplePattern<_Value>
impl<_Value: NestedValue> Domain for SimplePattern<_Value>
source§impl<_Value: Hash + NestedValue> Hash for SimplePattern<_Value>
impl<_Value: Hash + NestedValue> Hash for SimplePattern<_Value>
source§impl<_Value: Ord + NestedValue> Ord for SimplePattern<_Value>
impl<_Value: Ord + NestedValue> Ord for SimplePattern<_Value>
source§fn cmp(&self, other: &SimplePattern<_Value>) -> Ordering
fn cmp(&self, other: &SimplePattern<_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 SimplePattern<_Value>
impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Parse<_L, _Value> for SimplePattern<_Value>
source§impl<_Value: PartialEq + NestedValue> PartialEq<SimplePattern<_Value>> for SimplePattern<_Value>
impl<_Value: PartialEq + NestedValue> PartialEq<SimplePattern<_Value>> for SimplePattern<_Value>
source§fn eq(&self, other: &SimplePattern<_Value>) -> bool
fn eq(&self, other: &SimplePattern<_Value>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<_Value: PartialOrd + NestedValue> PartialOrd<SimplePattern<_Value>> for SimplePattern<_Value>
impl<_Value: PartialOrd + NestedValue> PartialOrd<SimplePattern<_Value>> for SimplePattern<_Value>
source§fn partial_cmp(&self, other: &SimplePattern<_Value>) -> Option<Ordering>
fn partial_cmp(&self, other: &SimplePattern<_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 more