Struct futures_await_syn::Field
[−]
[src]
pub struct Field { pub ident: Option<Ident>, pub vis: Visibility, pub attrs: Vec<Attribute>, pub ty: Ty, pub colon_token: Option<Colon>, }
A field of a struct or enum variant.
Fields
ident: Option<Ident>
Name of the field, if any.
Fields of tuple structs have no names.
vis: Visibility
Visibility of the field.
attrs: Vec<Attribute>
Attributes tagged on the field.
ty: Ty
Type of the field.
colon_token: Option<Colon>
Methods
impl Field
[src]
fn parse_struct(i: Cursor) -> PResult<Self>
fn parse_tuple(i: Cursor) -> PResult<Self>
Trait Implementations
impl ToTokens for Field
[src]
fn to_tokens(&self, tokens: &mut Tokens)
[src]
Write self
to the given Tokens
. Read more
fn into_tokens(self) -> Tokens
[src]
Convert self
directly into a Tokens
object. Read more