Enum preserves_schema::gen::schema::SimplePattern [−][src]
pub enum SimplePattern { Any, Atom { atom_kind: Box<AtomKind>, }, Embedded { interface: Box<SimplePattern>, }, Lit { value: _Any, }, Seqof { pattern: Box<SimplePattern>, }, Setof { pattern: Box<SimplePattern>, }, Dictof { key: Box<SimplePattern>, value: Box<SimplePattern>, }, Ref(Box<Ref>), }
Variants
Fields of Embedded
interface: Box<SimplePattern>
Fields of Lit
value: _Any
Fields of Seqof
pattern: Box<SimplePattern>
Fields of Setof
pattern: Box<SimplePattern>
Fields of Dictof
key: Box<SimplePattern>
value: Box<SimplePattern>
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 SimplePattern
impl Send for SimplePattern
impl Sync for SimplePattern
impl Unpin for SimplePattern
impl UnwindSafe for SimplePattern
Blanket Implementations
Mutably borrows from an owned value. Read more