pub enum Fields {
Named(FieldsNamed),
Unnamed(FieldsUnnamed),
Unit,
}
Expand description
A set of fields associated with a type or enum
variant.
Variants§
Named(FieldsNamed)
A set of named fields.
Unnamed(FieldsUnnamed)
A set of index-addressed fields
Unit
The empty set of fields, applicable to unit structs or enum variants.
Implementations§
Trait Implementations§
Source§impl Ord for Fields
impl Ord for Fields
Source§impl PartialOrd for Fields
impl PartialOrd for Fields
impl Eq for Fields
impl StructuralPartialEq for Fields
Auto Trait Implementations§
impl Freeze for Fields
impl RefUnwindSafe for Fields
impl Send for Fields
impl Sync for Fields
impl Unpin for Fields
impl UnwindSafe for Fields
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