pub struct MirRecordUpdate {
pub base: Box<Spanned<MirExpr>>,
pub type_id: Option<TypeId>,
pub type_name: String,
pub updates: Vec<MirRecordField>,
}Expand description
T.update(base, …) — produce a record matching base except
for the named field overrides. type_id / type_name follow the
same user-vs-built-in split as MirRecordCreate.
Fields§
§base: Box<Spanned<MirExpr>>§type_id: Option<TypeId>§type_name: String§updates: Vec<MirRecordField>Trait Implementations§
Source§impl Clone for MirRecordUpdate
impl Clone for MirRecordUpdate
Source§fn clone(&self) -> MirRecordUpdate
fn clone(&self) -> MirRecordUpdate
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 MirRecordUpdate
impl RefUnwindSafe for MirRecordUpdate
impl Send for MirRecordUpdate
impl Sync for MirRecordUpdate
impl Unpin for MirRecordUpdate
impl UnsafeUnpin for MirRecordUpdate
impl UnwindSafe for MirRecordUpdate
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