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