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