Enum impl_tools_lib::fields::Fields
source · pub enum Fields {
Named(FieldsNamed),
Unnamed(FieldsUnnamed),
Unit,
}Expand description
Data stored within an enum variant or struct.
This is a variant of syn::Fields supporting field initializers.
Variants§
Named(FieldsNamed)
Named fields of a struct or struct variant such as Point { x: f64, y: f64 }.
Unnamed(FieldsUnnamed)
Unnamed fields of a tuple struct or tuple variant such as Some(T).
Unit
Unit struct or unit variant such as None.
Trait Implementations§
Auto Trait Implementations§
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