pub enum PrefixOp {
Not,
Neg,
Pos,
Other(String),
}Expand description
Prefix operators, with an explicit escape hatch for the unmodeled.
Variants§
Not
! — logical negation.
Neg
- — arithmetic negation.
Pos
+ — unary plus.
Other(String)
Any operator not modeled above, kept as raw text.
Trait Implementations§
impl Eq for PrefixOp
impl StructuralPartialEq for PrefixOp
Auto Trait Implementations§
impl Freeze for PrefixOp
impl RefUnwindSafe for PrefixOp
impl Send for PrefixOp
impl Sync for PrefixOp
impl Unpin for PrefixOp
impl UnsafeUnpin for PrefixOp
impl UnwindSafe for PrefixOp
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