Trait derive_attribute::Attribute
source · 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§
sourcefn from_attrs(
location: Span,
attrs: Vec<<V as SynVersion>::Attribute, Global>
) -> Result<Self, Vec<<V as SynVersion>::Error, Global>>
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.