#[repr(C)]pub struct StatementCompoundAssign<'ast> {
pub base: StatementHeader<'ast>,
pub var: Expression<'ast>,
pub op: BinaryOp,
pub value: Expression<'ast>,
}Fields§
§base: StatementHeader<'ast>§var: Expression<'ast>§op: BinaryOp§value: Expression<'ast>Implementations§
Source§impl<'ast> StatementCompoundAssign<'ast>
impl<'ast> StatementCompoundAssign<'ast>
pub fn new( location: Location, has_semicolon: bool, var: Expression<'ast>, op: BinaryOp, value: Expression<'ast>, ) -> Self
pub fn location(&self) -> Location
pub fn has_semicolon(&self) -> bool
Trait Implementations§
Source§impl Debug for StatementCompoundAssign<'_>
impl Debug for StatementCompoundAssign<'_>
Auto Trait Implementations§
impl<'ast> !Send for StatementCompoundAssign<'ast>
impl<'ast> !Sync for StatementCompoundAssign<'ast>
impl<'ast> Freeze for StatementCompoundAssign<'ast>
impl<'ast> RefUnwindSafe for StatementCompoundAssign<'ast>
impl<'ast> Unpin for StatementCompoundAssign<'ast>
impl<'ast> UnsafeUnpin for StatementCompoundAssign<'ast>
impl<'ast> UnwindSafe for StatementCompoundAssign<'ast>
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