pub struct Arith {
pub verb: ArithVerb,
pub computations: Vec<(Target, Expr)>,
pub remainder: Option<(Target, Expr, Expr)>,
pub size_error: Option<SizeError>,
pub pos: Pos,
}Expand description
One arithmetic statement: targets each receive expr, which is written in terms of the
statement’s operands and, for the forms without GIVING, the target itself (Operand::Ref of
the target, placed by the parser).
Fields§
§verb: ArithVerb§computations: Vec<(Target, Expr)>§remainder: Option<(Target, Expr, Expr)>§size_error: Option<SizeError>§pos: PosTrait Implementations§
impl Eq for Arith
impl StructuralPartialEq for Arith
Auto Trait Implementations§
impl Freeze for Arith
impl RefUnwindSafe for Arith
impl Send for Arith
impl Sync for Arith
impl Unpin for Arith
impl UnsafeUnpin for Arith
impl UnwindSafe for Arith
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