#[non_exhaustive]pub struct Attr<'a> {
pub name: Cow<'a, str>,
pub value: Cow<'a, str>,
}Expand description
A name with its value: a plural form, or an attribute of a theme or pattern.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Cow<'a, str>The plural quantity (one, other) or the attribute name.
value: Cow<'a, str>The text for that quantity or attribute, as stored.
Trait Implementations§
impl<'a> Eq for Attr<'a>
impl<'a> StructuralPartialEq for Attr<'a>
Auto Trait Implementations§
impl<'a> Forget for Attr<'a>
impl<'a> Freeze for Attr<'a>
impl<'a> Move for Attr<'a>
impl<'a> RefUnwindSafe for Attr<'a>
impl<'a> Send for Attr<'a>
impl<'a> Sync for Attr<'a>
impl<'a> Unpin for Attr<'a>
impl<'a> UnsafeUnpin for Attr<'a>
impl<'a> UnwindSafe for Attr<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more