pub struct Record {
pub ty: Arc<str>,
pub variant: Option<Arc<str>>,
pub fields: Fields,
}Expand description
A model instance or a union variant. variant is None for a plain record.
Split out of Value::Data so that a Value is a discriminant and a pointer. Records are the
widest thing the language has and the rarest thing in a hot loop, which is exactly the shape
that should be behind an indirection.
Fields§
§ty: Arc<str>§variant: Option<Arc<str>>§fields: FieldsTrait Implementations§
Source§impl Ord for Record
impl Ord for Record
Source§impl PartialOrd for Record
impl PartialOrd for Record
impl Eq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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