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

Represents a struct that can be deserialized from Syn attributes.

Provided Methods§

source

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

Creates a deserialized attribute from a list of Syn attributes.

Implementations on Foreign Types§

source§

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

Implementors§