pub struct Attribute {
pub name: InternedStr,
pub value: AttributeValue,
}Expand description
One XML attribute: a name plus its typed value.
Fields§
§name: InternedStrThe attribute’s name.
value: AttributeValueThe attribute’s typed value.
Implementations§
Source§impl Attribute
impl Attribute
Sourcepub fn as_str(&self) -> Cow<'_, str>
pub fn as_str(&self) -> Cow<'_, str>
Render Attribute::value as a human-readable string; see
AttributeValue::as_str.
Trait Implementations§
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnsafeUnpin for Attribute
impl UnwindSafe for Attribute
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