Struct svgdom::Attributes
source · pub struct Attributes(_);
Expand description
An attributes list.
Implementations
sourceimpl Attributes
impl Attributes
sourcepub fn get<'a, N>(&self, name: N) -> Option<&Attribute>where
AttributeQNameRef<'a>: From<N>,
pub fn get<'a, N>(&self, name: N) -> Option<&Attribute>where
AttributeQNameRef<'a>: From<N>,
Returns an optional reference to Attribute
.
sourcepub fn get_mut<'a, N>(&mut self, name: N) -> Option<&mut Attribute>where
AttributeQNameRef<'a>: From<N>,
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
.
sourcepub fn get_value<'a, N>(&self, name: N) -> Option<&AttributeValue>where
AttributeQNameRef<'a>: From<N>,
pub fn get_value<'a, N>(&self, name: N) -> Option<&AttributeValue>where
AttributeQNameRef<'a>: From<N>,
Returns an optional reference to AttributeValue
.
sourcepub fn get_value_mut<'a, N>(&mut self, name: N) -> Option<&mut AttributeValue>where
AttributeQNameRef<'a>: From<N>,
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
.
sourcepub fn contains<'a, N>(&self, name: N) -> boolwhere
AttributeQNameRef<'a>: From<N>,
pub fn contains<'a, N>(&self, name: N) -> boolwhere
AttributeQNameRef<'a>: From<N>,
Returns true
if the container contains an attribute with such name.
Trait Implementations
sourceimpl Debug for Attributes
impl Debug for Attributes
sourceimpl Display for Attributes
impl Display for Attributes
sourceimpl IntoIterator for Attributes
impl IntoIterator for Attributes
Auto Trait Implementations
impl !RefUnwindSafe for Attributes
impl !Send for Attributes
impl !Sync for Attributes
impl Unpin for Attributes
impl !UnwindSafe for Attributes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more