[][src]Struct svgdom::Attributes

pub struct Attributes(_);

An attributes list.

Methods

impl Attributes[src]

pub fn get<'a, N>(&self, name: N) -> Option<&Attribute> where
    AttributeQNameRef<'a>: From<N>, 
[src]

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]

Returns an optional mutable reference to Attribute.

pub fn get_value<'a, N>(&self, name: N) -> Option<&AttributeValue> where
    AttributeQNameRef<'a>: From<N>, 
[src]

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]

Returns an optional mutable reference to AttributeValue.

pub fn contains<'a, N>(&self, name: N) -> bool where
    AttributeQNameRef<'a>: From<N>, 
[src]

Returns true if the container contains an attribute with such name.

pub fn len(&self) -> usize[src]

Returns count of the attributes.

pub fn is_empty(&self) -> bool[src]

Returns true if attributes is empty.

pub fn iter(&self) -> Iter<Attribute>[src]

Returns an iterator.

pub fn iter_mut(&mut self) -> IterMut<Attribute>[src]

Returns a mutable iterator.

Trait Implementations

impl IntoIterator for Attributes[src]

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?

impl Display for Attributes[src]

impl Debug for Attributes[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]