Struct syn::FieldsNamed
source · [−]pub struct FieldsNamed {
pub brace_token: Brace,
pub named: Punctuated<Field, Comma>,
}
Expand description
Named fields of a struct or struct variant such as Point { x: f64, y: f64 }
.
This type is available only if Syn is built with the "derive"
or
"full"
feature.
Fields
brace_token: Brace
named: Punctuated<Field, Comma>
Trait Implementations
sourceimpl From<FieldsNamed> for Fields
impl From<FieldsNamed> for Fields
sourcefn from(e: FieldsNamed) -> Fields
fn from(e: FieldsNamed) -> Fields
Converts to this type from the input type.
sourceimpl Parse for FieldsNamed
impl Parse for FieldsNamed
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations
impl RefUnwindSafe for FieldsNamed
impl !Send for FieldsNamed
impl !Sync for FieldsNamed
impl Unpin for FieldsNamed
impl UnwindSafe for FieldsNamed
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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