[−][src]Struct svgdom::Attributes
An attributes list.
Methods
impl Attributes
[src]
pub fn get<'a, N>(&self, name: N) -> Option<&Attribute> where
AttributeQNameRef<'a>: From<N>,
[src]
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]
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]
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]
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]
AttributeQNameRef<'a>: From<N>,
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?
fn into_iter(self) -> Self::IntoIter
[src]
impl Display for Attributes
[src]
impl Debug for Attributes
[src]
Auto Trait Implementations
impl !Send for Attributes
impl Unpin for Attributes
impl !Sync for Attributes
impl !UnwindSafe for Attributes
impl !RefUnwindSafe for Attributes
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
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?
fn into_iter(self) -> I
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,