pub struct AssignStmt<Variable, Expr>(pub Variable, pub Expr);Expand description
An assignation. This statement includes the semicolon and a new line.
Tuple Fields§
§0: Variable§1: ExprTrait Implementations§
Source§impl<Variable: Clone, Expr: Clone> Clone for AssignStmt<Variable, Expr>
impl<Variable: Clone, Expr: Clone> Clone for AssignStmt<Variable, Expr>
Source§fn clone(&self) -> AssignStmt<Variable, Expr>
fn clone(&self) -> AssignStmt<Variable, Expr>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<Variable, Expr> Freeze for AssignStmt<Variable, Expr>
impl<Variable, Expr> RefUnwindSafe for AssignStmt<Variable, Expr>where
Variable: RefUnwindSafe,
Expr: RefUnwindSafe,
impl<Variable, Expr> Send for AssignStmt<Variable, Expr>
impl<Variable, Expr> Sync for AssignStmt<Variable, Expr>
impl<Variable, Expr> Unpin for AssignStmt<Variable, Expr>
impl<Variable, Expr> UnwindSafe for AssignStmt<Variable, Expr>where
Variable: UnwindSafe,
Expr: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)