pub struct OwnedAttributeDiscription {
pub name: String,
pub namespace: Option<String>,
}
Expand description
A discription of an attribute on a DOM node, such as id
or href
.
Fields§
§name: String
The name of the attribute.
namespace: Option<String>
The namespace of the attribute used to identify what kind of attribute it is.
For renderers that use HTML, this can be used to identify if the attribute is a style attribute.
Instead of parsing the style attribute every time a style is changed, you can set an attribute with the style
namespace.
Trait Implementations§
Source§impl Clone for OwnedAttributeDiscription
impl Clone for OwnedAttributeDiscription
Source§fn clone(&self) -> OwnedAttributeDiscription
fn clone(&self) -> OwnedAttributeDiscription
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OwnedAttributeDiscription
impl Debug for OwnedAttributeDiscription
Source§impl From<String> for OwnedAttributeDiscription
impl From<String> for OwnedAttributeDiscription
Source§impl Hash for OwnedAttributeDiscription
impl Hash for OwnedAttributeDiscription
impl Eq for OwnedAttributeDiscription
impl StructuralPartialEq for OwnedAttributeDiscription
Auto Trait Implementations§
impl Freeze for OwnedAttributeDiscription
impl RefUnwindSafe for OwnedAttributeDiscription
impl Send for OwnedAttributeDiscription
impl Sync for OwnedAttributeDiscription
impl Unpin for OwnedAttributeDiscription
impl UnwindSafe for OwnedAttributeDiscription
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