Struct kuchiki::Attributes
[−]
[src]
pub struct Attributes { pub map: HashMap<QualName, String>, }
Convenience wrapper around a hashmap that adds method for attributes in the null namespace.
Fields
map: HashMap<QualName, String>
A map of attributes whose name can have namespaces.
Methods
impl Attributes
[src]
fn contains<A: Into<LocalName>>(&self, local_name: A) -> bool
Like HashMap::contains
fn get<A: Into<LocalName>>(&self, local_name: A) -> Option<&str>
Like HashMap::get
fn get_mut<A: Into<LocalName>>(&mut self, local_name: A) -> Option<&mut String>
Like HashMap::get_mut
fn entry<A: Into<LocalName>>(
&mut self,
local_name: A
) -> Entry<QualName, String>
&mut self,
local_name: A
) -> Entry<QualName, String>
Like HashMap::entry
fn insert<A: Into<LocalName>>(
&mut self,
local_name: A,
value: String
) -> Option<String>
&mut self,
local_name: A,
value: String
) -> Option<String>
Like HashMap::insert
fn remove<A: Into<LocalName>>(&mut self, local_name: A) -> Option<String>
Like HashMap::remove
Trait Implementations
impl Debug for Attributes
[src]
impl PartialEq for Attributes
[src]
fn eq(&self, __arg_0: &Attributes) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Attributes) -> bool
This method tests for !=
.
impl Clone for Attributes
[src]
fn clone(&self) -> Attributes
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more