Struct syn::FieldValue [−][src]
pub struct FieldValue { pub attrs: Vec<Attribute>, pub member: Member, pub colon_token: Option<Colon>, pub expr: Expr, }
This is supported on crate feature
full
only.A field-value pair in a struct literal.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
Attributes tagged on the field.
member: Member
Name or index of the field.
colon_token: Option<Colon>
The colon in Struct { x: x }
. If written in shorthand like
Struct { x }
, there is no colon.
expr: Expr
Value of the field.
Trait Implementations
impl Clone for FieldValue
[src]
impl Clone for FieldValue
[src]This is supported on crate feature
clone-impls
only.fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FieldValue
[src]
impl Debug for FieldValue
[src]This is supported on crate feature
extra-traits
only.impl Eq for FieldValue
[src]
impl Eq for FieldValue
[src]This is supported on crate feature
extra-traits
only.impl Hash for FieldValue
[src]
impl Hash for FieldValue
[src]This is supported on crate feature
extra-traits
only.impl Parse for FieldValue
[src]
impl Parse for FieldValue
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<FieldValue> for FieldValue
[src]
impl PartialEq<FieldValue> for FieldValue
[src]This is supported on crate feature
extra-traits
only.impl ToTokens for FieldValue
[src]
impl ToTokens for FieldValue
[src]This is supported on crate feature
printing
only.fn to_tokens(&self, tokens: &mut TokenStream)
[src]
pub fn to_token_stream(&self) -> TokenStream
[src]
pub fn into_token_stream(self) -> TokenStream
[src]
Auto Trait Implementations
impl RefUnwindSafe for FieldValue
impl RefUnwindSafe for FieldValue
impl !Send for FieldValue
impl !Send for FieldValue
impl !Sync for FieldValue
impl !Sync for FieldValue
impl Unpin for FieldValue
impl Unpin for FieldValue
impl UnwindSafe for FieldValue
impl UnwindSafe for FieldValue