Struct exmex::Operator [−][src]
pub struct Operator<'a, T: Copy> { /* fields omitted */ }
Expand description
Operators can be custom-defined by the library-user in terms of this struct.
Implementations
Creates a unary operator.
Creates an operator that is either unary or binary based on its positioning in the string to be parsed.
For instance, -
as defined in DefaultOpsFactory
is unary in -x
and binary
in 2-x
.
Creates a constant operator. If an operator is constant it cannot be additionally binary or unary.
Trait Implementations
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
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Operator<'a, T> where
T: RefUnwindSafe,
impl<'a, T> UnwindSafe for Operator<'a, T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more