Struct svgdom::Attributes [−][src]
pub struct Attributes(_);
An attributes list.
Methods
impl Attributes
[src]
impl Attributes
pub fn get<'a, N>(&self, name: N) -> Option<&Attribute> where
AttributeQNameRef<'a>: From<N>,
[src]
pub fn get<'a, N>(&self, name: N) -> Option<&Attribute> where
AttributeQNameRef<'a>: From<N>,
Returns an optional reference to Attribute
.
pub fn get_mut<'a, N>(&mut self, name: N) -> Option<&mut Attribute> where
AttributeQNameRef<'a>: From<N>,
[src]
pub fn get_mut<'a, N>(&mut self, name: N) -> Option<&mut Attribute> where
AttributeQNameRef<'a>: From<N>,
Returns an optional mutable reference to Attribute
.
pub fn get_value<'a, N>(&self, name: N) -> Option<&AttributeValue> where
AttributeQNameRef<'a>: From<N>,
[src]
pub fn get_value<'a, N>(&self, name: N) -> Option<&AttributeValue> where
AttributeQNameRef<'a>: From<N>,
Returns an optional reference to AttributeValue
.
pub fn get_value_mut<'a, N>(&mut self, name: N) -> Option<&mut AttributeValue> where
AttributeQNameRef<'a>: From<N>,
[src]
pub fn get_value_mut<'a, N>(&mut self, name: N) -> Option<&mut AttributeValue> where
AttributeQNameRef<'a>: From<N>,
Returns an optional mutable reference to AttributeValue
.
pub fn contains<'a, N>(&self, name: N) -> bool where
AttributeQNameRef<'a>: From<N>,
[src]
pub fn contains<'a, N>(&self, name: N) -> bool where
AttributeQNameRef<'a>: From<N>,
Returns true
if the container contains an attribute with such name.
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
Returns count of the attributes.
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
Returns true
if attributes is empty.
ⓘImportant traits for Iter<'a, T>pub fn iter(&self) -> Iter<Attribute>
[src]
ⓘImportant traits for Iter<'a, T>
pub fn iter(&self) -> Iter<Attribute>
Returns an iterator.
ⓘImportant traits for IterMut<'a, T>pub fn iter_mut(&mut self) -> IterMut<Attribute>
[src]
ⓘImportant traits for IterMut<'a, T>
pub fn iter_mut(&mut self) -> IterMut<Attribute>
Returns a mutable iterator.
Trait Implementations
impl IntoIterator for Attributes
[src]
impl IntoIterator for Attributes
type Item = Attribute
The type of the elements being iterated over.
type IntoIter = IntoIter<Self::Item>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl Debug for Attributes
[src]
impl Debug for Attributes
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Attributes
[src]
impl Display for Attributes
Auto Trait Implementations
impl !Send for Attributes
impl !Send for Attributes
impl !Sync for Attributes
impl !Sync for Attributes