Trait darling::FromVariant [−][src]
pub trait FromVariant { pub fn from_variant(variant: &Variant) -> Result<Self, Error>; }
Creates an instance from a specified syn::Variant
.
Required methods
pub fn from_variant(variant: &Variant) -> Result<Self, Error>
[src]
Create an instance from syn::Variant
, or return an error.
Implementations on Foreign Types
impl FromVariant for Vec<Attribute, Global>
[src]
impl FromVariant for Vec<Attribute, Global>
[src]impl FromVariant for Variant
[src]
impl FromVariant for Variant
[src]Implementors
impl FromVariant for Ignored
[src]
impl FromVariant for Ignored
[src]impl<T> FromVariant for SpannedValue<T> where
T: FromVariant,
[src]
impl<T> FromVariant for SpannedValue<T> where
T: FromVariant,
[src]pub fn from_variant(value: &Variant) -> Result<SpannedValue<T>, Error>
[src]
impl<T> FromVariant for WithOriginal<T, Variant> where
T: FromVariant,
[src]
impl<T> FromVariant for WithOriginal<T, Variant> where
T: FromVariant,
[src]