pub struct SVG { /* private fields */ }
Expand description
An svg
element.
Implementations§
Methods from Deref<Target = Element>§
Sourcepub fn get_attributes(&self) -> &HashMap<String, Value>
pub fn get_attributes(&self) -> &HashMap<String, Value>
Return the attributes.
Sourcepub fn get_attributes_mut(&mut self) -> &mut HashMap<String, Value>
pub fn get_attributes_mut(&mut self) -> &mut HashMap<String, Value>
Return the attributes as mutable.
Sourcepub fn get_children(&self) -> &Vec<Box<dyn Node>>
pub fn get_children(&self) -> &Vec<Box<dyn Node>>
Return the children.
Sourcepub fn get_children_mut(&mut self) -> &mut Vec<Box<dyn Node>>
pub fn get_children_mut(&mut self) -> &mut Vec<Box<dyn Node>>
Return the children as mutable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SVG
impl !RefUnwindSafe for SVG
impl Send for SVG
impl Sync for SVG
impl Unpin for SVG
impl !UnwindSafe for SVG
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more