pub struct Attr {
pub name: Cow<'static, str>,
pub value: Option<AttrValue>,
/* private fields */
}Expand description
An attribute. Create with the helpers in crate::attrs.
Fields§
§name: Cow<'static, str>§value: Option<AttrValue>Implementations§
Trait Implementations§
impl Eq for Attr
impl StructuralPartialEq for Attr
Auto Trait Implementations§
impl Forget for Attr
impl Freeze for Attr
impl Move for Attr
impl RefUnwindSafe for Attr
impl Send for Attr
impl Sync for Attr
impl Unpin for Attr
impl UnsafeUnpin for Attr
impl UnwindSafe for Attr
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