pub enum Fields {
Named(&'static [Field]),
Indexed(&'static [Field]),
Unit,
}
Expand description
Information about type fields (if there is any)
Variants§
Named(&'static [Field])
Type is structure-like and has fields with names
Indexed(&'static [Field])
Type is tuple-like and has fields that can be referred by their index (just like you would be accessing plain tuple)
Unit
Type is unit and doesn’t have any fields
Trait Implementations§
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