pub struct Field {
pub id: FieldId<'static>,
pub ident: Option<&'static str>,
pub ty: Option<&'static Type>,
}
Expand description
A field that is associated with a type or enum
variant.
Fields§
§id: FieldId<'static>
The type or variant local unique identifier for the field.
ident: Option<&'static str>
The field’s identifier, if it is named.
ty: Option<&'static Type>
The type of the field, if it has any associated TypeInfo
.
Trait Implementations§
Source§impl Ord for Field
impl Ord for Field
Source§impl PartialOrd for Field
impl PartialOrd for Field
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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