Struct preserves_schema::gen::schema::NamedAlternative [−][src]
pub struct NamedAlternative<_Value: NestedValue = IOValue> {
pub variant_label: String,
pub pattern: Pattern<_Value>,
}
Fields
variant_label: String
pattern: Pattern<_Value>
Trait Implementations
impl<'de, _Value: NestedValue, R: Reader<'de, _Value>> Deserialize<'de, _Value, R> for NamedAlternative<_Value>
impl<'de, _Value: NestedValue, R: Reader<'de, _Value>> Deserialize<'de, _Value, R> for NamedAlternative<_Value>
impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Parse<_L, _Value> for NamedAlternative<_Value>
impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Parse<_L, _Value> for NamedAlternative<_Value>
impl<_Value: PartialEq + NestedValue> PartialEq<NamedAlternative<_Value>> for NamedAlternative<_Value>
impl<_Value: PartialEq + NestedValue> PartialEq<NamedAlternative<_Value>> for NamedAlternative<_Value>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<_Value: PartialOrd + NestedValue> PartialOrd<NamedAlternative<_Value>> for NamedAlternative<_Value>
impl<_Value: PartialOrd + NestedValue> PartialOrd<NamedAlternative<_Value>> for NamedAlternative<_Value>
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
impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for NamedAlternative<_Value>
impl<'a, _L: Copy + Into<&'a Language<_Value>>, _Value: NestedValue + 'a> Unparse<_L, _Value> for NamedAlternative<_Value>
Auto Trait Implementations
impl<_Value> RefUnwindSafe for NamedAlternative<_Value> where
_Value: RefUnwindSafe,
impl<_Value> Send for NamedAlternative<_Value> where
_Value: Send,
impl<_Value> Sync for NamedAlternative<_Value> where
_Value: Sync,
impl<_Value> Unpin for NamedAlternative<_Value>
impl<_Value> UnwindSafe for NamedAlternative<_Value> where
_Value: UnwindSafe + RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more