Struct mattro::NameValueAttribute [−][src]
pub struct NameValueAttribute { /* fields omitted */ }
Expand description
Represents a name-value
attribute like #[attribute(name="value")]
.
Implementations
pub fn new(
path: &str,
meta_items: Vec<MetaItem>,
style: AttrStyle
) -> Result<Self, NameValueError>
pub fn from_attribute_args(
path: &str,
attribute_args: AttributeArgs,
style: AttrStyle
) -> Result<Self, NameValueError>
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for NameValueAttribute
impl !Send for NameValueAttribute
impl !Sync for NameValueAttribute
impl Unpin for NameValueAttribute
impl UnwindSafe for NameValueAttribute
Blanket Implementations
Mutably borrows from an owned value. Read more