Trait virtue::parse::FromAttribute
source · 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_attribute
is a helper for parsing attributes in the format of#[prefix(...)]
Required Methods§
Object Safety§
This trait is not object safe.