pub trait Attribute<V>: AttributeName + TryFromMeta<V, Metadata = <V as SynVersion>::Attribute>where
    V: SynVersion,{
    // Provided method
    fn from_attrs(
        location: Span,
        attrs: Vec<<V as SynVersion>::Attribute, Global>
    ) -> Result<Self, Vec<<V as SynVersion>::Error, Global>> { ... }
}
Expand description

Represents a struct that can be deserialized from Syn attributes.

Provided Methods§

source

fn from_attrs( location: Span, attrs: Vec<<V as SynVersion>::Attribute, Global> ) -> Result<Self, Vec<<V as SynVersion>::Error, Global>>

Creates a deserialized attribute from a list of Syn attributes.

Implementations on Foreign Types§

source§

impl<V, T> Attribute<V> for Option<T>where V: SynVersion, T: Attribute<V>, Option<T>: TryFromMeta<V, Metadata = <V as SynVersion>::Attribute>,

Implementors§