pub enum Fixity {
Prefix,
InfixLeft,
InfixRight,
Postfix,
Mixfix,
}Expand description
The grammatical position an operator occupies relative to its operands.
Variants§
Prefix
Operator precedes its single operand (for example, unary minus).
InfixLeft
Left-associative infix operator between two operands.
InfixRight
Right-associative infix operator between two operands.
Postfix
Operator follows its single operand (for example, a factorial mark).
Mixfix
Operator with operands interleaved among multiple fixed parts.
Trait Implementations§
impl Copy for Fixity
impl Eq for Fixity
Source§impl Ord for Fixity
impl Ord for Fixity
1.21.0 (const: unstable) · 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 PartialOrd for Fixity
impl PartialOrd for Fixity
impl StructuralPartialEq for Fixity
Auto Trait Implementations§
impl Freeze for Fixity
impl RefUnwindSafe for Fixity
impl Send for Fixity
impl Sync for Fixity
impl Unpin for Fixity
impl UnsafeUnpin for Fixity
impl UnwindSafe for Fixity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more