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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.