pub struct MirCallArg {
pub mode: MirArgMode,
pub local: MirLocalId,
}Expand description
Single call argument with explicit ownership mode.
Fields§
§mode: MirArgModeOwnership mode applied to the argument.
local: MirLocalIdLocal id supplying the argument value.
Implementations§
Source§impl MirCallArg
impl MirCallArg
Sourcepub fn is_mutable_borrow(&self) -> bool
pub fn is_mutable_borrow(&self) -> bool
Return whether the call argument mode is mutable borrow.
Trait Implementations§
Source§impl Clone for MirCallArg
impl Clone for MirCallArg
Source§fn clone(&self) -> MirCallArg
fn clone(&self) -> MirCallArg
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 Freeze for MirCallArg
impl RefUnwindSafe for MirCallArg
impl Send for MirCallArg
impl Sync for MirCallArg
impl Unpin for MirCallArg
impl UnwindSafe for MirCallArg
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