pub enum RecordShape {
Auto,
Named,
Tuple,
Unit,
}Expand description
How a record or variant’s field layout is decided.
§Examples
use lower_lang::RecordShape;
assert_eq!(RecordShape::default(), RecordShape::Auto);Variants§
Auto
Named when any field has a name or there are no fields; tuple-like when every field is unnamed.
Named
{ x: T }.
Tuple
(T, U).
Unit
No fields at all (struct S;, a bare enum variant).
Trait Implementations§
Source§impl Clone for RecordShape
impl Clone for RecordShape
impl Copy for RecordShape
Source§impl Debug for RecordShape
impl Debug for RecordShape
Source§impl Default for RecordShape
impl Default for RecordShape
impl Eq for RecordShape
Source§impl Hash for RecordShape
impl Hash for RecordShape
Source§impl PartialEq for RecordShape
impl PartialEq for RecordShape
impl StructuralPartialEq for RecordShape
Auto Trait Implementations§
impl Freeze for RecordShape
impl RefUnwindSafe for RecordShape
impl Send for RecordShape
impl Sync for RecordShape
impl Unpin for RecordShape
impl UnsafeUnpin for RecordShape
impl UnwindSafe for RecordShape
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