Enum preserves_schema::gen::schema::Definition [−][src]
pub enum Definition { Or { pattern_0: Box<NamedAlternative>, pattern_1: Box<NamedAlternative>, pattern_n: Vec<NamedAlternative>, }, And { pattern_0: Box<NamedPattern>, pattern_1: Box<NamedPattern>, pattern_n: Vec<NamedPattern>, }, Pattern(Box<Pattern>), }
Variants
Fields of Or
Fields of And
Trait Implementations
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 Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnwindSafe for Definition
Blanket Implementations
Mutably borrows from an owned value. Read more