pub trait FromAttribute: Sized {
// Required method
fn parse(group: &Group) -> Result<Option<Self>>;
}Expand description
Helper trait for AttributeAccess methods.
This can be implemented on your own type to make parsing easier.
Some functions that can make your life easier:
utils::parse_tagged_attributeis a helper for parsing attributes in the format of#[prefix(...)]
Required 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.