pub struct Assign {
pub target: AssignTarget,
pub op: AssignOp,
pub value: Box<Expr>,
pub span: Range<usize>,
}Expand description
An assignment of a variable or function, such as x = 1 or f(x) = x^2.
Fields§
§target: AssignTargetThe target to assign to.
op: AssignOpThe operator used to assign to the target.
value: Box<Expr>The expression to assign to the target.
span: Range<usize>The region of the source code that this assignment expression was parsed from.
Implementations§
Trait Implementations§
Source§impl Latex for Assign
impl Latex for Assign
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 Assign
impl<'source> Parse<'source> for Assign
impl Eq for Assign
impl StructuralPartialEq for Assign
Auto Trait Implementations§
impl Freeze for Assign
impl RefUnwindSafe for Assign
impl Send for Assign
impl Sync for Assign
impl Unpin for Assign
impl UnwindSafe for Assign
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