pub struct Assignment<'tcx> {
pub lv: Place<'tcx>,
pub rv: Place<'tcx>,
pub atype: AssignType,
pub span: Span,
}
Fields§
§lv: Place<'tcx>
§rv: Place<'tcx>
§atype: AssignType
§span: Span
Implementations§
source§impl<'tcx> Assignment<'tcx>
impl<'tcx> Assignment<'tcx>
pub fn new( lv: Place<'tcx>, rv: Place<'tcx>, atype: AssignType, span: Span, ) -> Assignment<'tcx>
Trait Implementations§
source§impl<'tcx> Clone for Assignment<'tcx>
impl<'tcx> Clone for Assignment<'tcx>
source§fn clone(&self) -> Assignment<'tcx>
fn clone(&self) -> Assignment<'tcx>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'tcx> Freeze for Assignment<'tcx>
impl<'tcx> !RefUnwindSafe for Assignment<'tcx>
impl<'tcx> Send for Assignment<'tcx>
impl<'tcx> Sync for Assignment<'tcx>
impl<'tcx> Unpin for Assignment<'tcx>
impl<'tcx> !UnwindSafe for Assignment<'tcx>
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
)