pub struct MirRecordCreate {
pub type_id: Option<TypeId>,
pub type_name: String,
pub fields: Vec<MirRecordField>,
}Expand description
Build a fresh record. type_id is Some for user-declared
records; built-in product types (HttpResponse, Header,
Buffer, …) carry no user TypeId, so they ride type_name
alone (the canonical builtin name the arena registers them under).
Fields§
§type_id: Option<TypeId>§type_name: String§fields: Vec<MirRecordField>Trait Implementations§
Source§impl Clone for MirRecordCreate
impl Clone for MirRecordCreate
Source§fn clone(&self) -> MirRecordCreate
fn clone(&self) -> MirRecordCreate
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 MirRecordCreate
impl RefUnwindSafe for MirRecordCreate
impl Send for MirRecordCreate
impl Sync for MirRecordCreate
impl Unpin for MirRecordCreate
impl UnsafeUnpin for MirRecordCreate
impl UnwindSafe for MirRecordCreate
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