pub struct UnaryOp {
pub kind: UnaryOpKind,
pub span: Range<usize>,
}Expand description
A unary operator that takes one operand.
Fields§
§kind: UnaryOpKindThe kind of unary operator.
span: Range<usize>The region of the source code that this operator was parsed from.
Implementations§
Source§impl UnaryOp
impl UnaryOp
Sourcepub fn precedence(&self) -> Precedence
pub fn precedence(&self) -> Precedence
Returns the precedence of the unary operator.
Sourcepub fn associativity(&self) -> Associativity
pub fn associativity(&self) -> Associativity
Returns the associativity of the unary operator.
Trait Implementations§
Source§impl Latex for UnaryOp
impl Latex for UnaryOp
Source§fn as_display(&self) -> LatexFormatter<'_, Self>
fn as_display(&self) -> LatexFormatter<'_, Self>
Wraps the value in a
LatexFormatter, which implements Display.Source§impl<'source> Parse<'source> for UnaryOp
impl<'source> Parse<'source> for UnaryOp
impl Eq for UnaryOp
impl StructuralPartialEq for UnaryOp
Auto Trait Implementations§
impl Freeze for UnaryOp
impl RefUnwindSafe for UnaryOp
impl Send for UnaryOp
impl Sync for UnaryOp
impl Unpin for UnaryOp
impl UnwindSafe for UnaryOp
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