[−][src]Struct syn::Variant
An enum variant.
This type is available only if Syn is built with the "derive" or "full"
feature.
Fields
attrs: Vec<Attribute>Attributes tagged on the variant.
ident: IdentName of the variant.
fields: FieldsContent stored in the variant.
discriminant: Option<(Eq, Expr)>Explicit discriminant: Variant = 1
Trait Implementations
impl Clone for Variant[src][+]
impl Debug for Variant[src][+]
impl Eq for Variant[src]
impl Hash for Variant[src][+]
impl Parse for Variant[src][+]
impl PartialEq<Variant> for Variant[src][+]
impl StructuralEq for Variant[src]
impl StructuralPartialEq for Variant[src]
impl ToTokens for Variant[src][+]
Auto Trait Implementations
impl !RefUnwindSafe for Variant
impl !Send for Variant
impl !Sync for Variant
impl Unpin for Variant
impl UnwindSafe for Variant
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src][+]
T: ?Sized,
impl<T> From<T> for T[src][+]
impl<T, U> Into<U> for T where
U: From<T>, [src][+]
U: From<T>,
impl<T> Spanned for T where
T: Spanned + ?Sized, [src][+]
T: Spanned + ?Sized,
impl<T> ToOwned for T where
T: Clone, [src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src][+]
U: TryFrom<T>,