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