pub struct Attribute {
pub name: Name,
pub value: String,
}Expand description
Fields§
§name: NameName and optional namespace
value: StringAttribute value.
Implementations§
Source§impl Attribute
impl Attribute
Sourcepub fn new(
ns_stack: &mut NamespaceStack<'_>,
prefix: &str,
name: &str,
value: String,
) -> MarkupResult<Self>
pub fn new( ns_stack: &mut NamespaceStack<'_>, prefix: &str, name: &str, value: String, ) -> MarkupResult<Self>
Create a new Attribute using the NamespaceStack to resolve the name
Trait Implementations§
impl Eq for Attribute
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 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