pub struct AssignOp {
pub kind: AssignOpKind,
pub span: Range<usize>,
}Expand description
An assignment operator that takes two operands, assigning the value of the right operand to the left operand, possibly with an intermediate operation.
Fields§
§kind: AssignOpKindThe kind of assignment operator.
span: Range<usize>The region of the source code that this operator was parsed from.
Implementations§
Source§impl AssignOp
impl AssignOp
Sourcepub fn is_standard(&self) -> bool
pub fn is_standard(&self) -> bool
Returns true if this assignment operator is the standard assignment operator (i.e. =).
Sourcepub fn is_compound(&self) -> bool
pub fn is_compound(&self) -> bool
Returns true if this assignment operator is a compound assignment operator.
Trait Implementations§
Source§impl Latex for AssignOp
impl Latex for AssignOp
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 AssignOp
impl<'source> Parse<'source> for AssignOp
impl Eq for AssignOp
impl StructuralPartialEq for AssignOp
Auto Trait Implementations§
impl Freeze for AssignOp
impl RefUnwindSafe for AssignOp
impl Send for AssignOp
impl Sync for AssignOp
impl Unpin for AssignOp
impl UnwindSafe for AssignOp
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