pub struct MirConstruct {
pub ctor: MirCtor,
pub args: Vec<Spanned<MirExpr>>,
}Expand description
Construct a sum-type variant. ctor discriminates user vs
built-in via MirCtor (wave 3c-i — built-in ctors now ride
the same node as user ctors instead of being dropped from the
MIR program).
Fields§
§ctor: MirCtor§args: Vec<Spanned<MirExpr>>Trait Implementations§
Source§impl Clone for MirConstruct
impl Clone for MirConstruct
Source§fn clone(&self) -> MirConstruct
fn clone(&self) -> MirConstruct
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MirConstruct
impl RefUnwindSafe for MirConstruct
impl Send for MirConstruct
impl Sync for MirConstruct
impl Unpin for MirConstruct
impl UnsafeUnpin for MirConstruct
impl UnwindSafe for MirConstruct
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