pub struct SvgElement {
pub name: String,
pub attributes: Vec<SvgAttribute>,
}Fields§
§name: String§attributes: Vec<SvgAttribute>Implementations§
Source§impl SvgElement
impl SvgElement
pub fn new(name: impl Into<String>, attributes: Vec<SvgAttribute>) -> SvgElement
Trait Implementations§
Source§impl Clone for SvgElement
impl Clone for SvgElement
Source§fn clone(&self) -> SvgElement
fn clone(&self) -> SvgElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SvgElement
impl Debug for SvgElement
Source§impl PartialEq for SvgElement
impl PartialEq for SvgElement
Source§fn eq(&self, other: &SvgElement) -> bool
fn eq(&self, other: &SvgElement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SvgElement
impl StructuralPartialEq for SvgElement
Auto Trait Implementations§
impl Freeze for SvgElement
impl RefUnwindSafe for SvgElement
impl Send for SvgElement
impl Sync for SvgElement
impl Unpin for SvgElement
impl UnsafeUnpin for SvgElement
impl UnwindSafe for SvgElement
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