pub enum FieldKind {
Tuple {
idx: usize,
},
Named {
name: &'static str,
},
EnumTuple {
idx: usize,
assoc_var: Variant,
},
EnumNamed {
name: &'static str,
assoc_var: Variant,
},
}
Expand description
Info about different kinds of Fields
Variants
Tuple
Fields
idx: usize
The index of this field
A tuple field, accessed by numeric index
Named
Fields
name: &'static str
The name of this field
A named field, accessed by textual name
EnumTuple
An enum tuple field, accessed by variant and numeric index
EnumNamed
An enum named field, accessed by variant and textual name
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FieldKind
impl Send for FieldKind
impl Sync for FieldKind
impl Unpin for FieldKind
impl UnwindSafe for FieldKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more