pub enum AssignOp {
Let,
Set,
Op(Op),
}Expand description
An assignment operator, e.g. the += in x += 1;.
Variants§
Let
x = 1 declares the name x and initialises it to 1.
Set
x := 1 overwrites the value of the name x with 1.
Op(Op)
x += 1 is an abbreviation for x := x + 1.
Trait Implementations§
impl Copy 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)