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: StringThe 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
source§impl PartialEq<OwnedAttributeDiscription> for OwnedAttributeDiscription
impl PartialEq<OwnedAttributeDiscription> for OwnedAttributeDiscription
source§fn eq(&self, other: &OwnedAttributeDiscription) -> bool
fn eq(&self, other: &OwnedAttributeDiscription) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for OwnedAttributeDiscription
impl StructuralEq for OwnedAttributeDiscription
impl StructuralPartialEq for OwnedAttributeDiscription
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more