pub struct SvgImage { /* private fields */ }Implementations§
Source§impl SvgImage
impl SvgImage
pub fn style<S: ToString>(self, style: S) -> Self
pub fn class<S: ToString>(self, class: S) -> Self
pub const fn transform(self, transform: SvgTransform) -> Self
pub const fn fill(self, color: SvgColor) -> Self
pub const fn stroke_linecap(self, stroke_linecap: SvgStrokeLinecap) -> Self
pub fn title(self, title: String) -> Self
Source§impl SvgImage
impl SvgImage
pub const fn new() -> Self
pub const fn dimensions(self, width: SvgInteger, height: SvgInteger) -> Self
pub fn data_attribute(self, name: String, value: String) -> Self
pub fn view_box<V: Into<ViewBox>>(self, view_box: V) -> Self
pub fn add<E: Into<SvgElement>>(&mut self, element: E) -> &mut Self
pub fn add_with_id<E: Into<SvgElement>>(&mut self, element: E) -> SvgId
pub fn define<E: Into<SvgElement>>(&mut self, element: E) -> SvgId
pub fn to_svg_string(&self) -> String
Auto Trait Implementations§
impl Freeze for SvgImage
impl RefUnwindSafe for SvgImage
impl Send for SvgImage
impl Sync for SvgImage
impl Unpin for SvgImage
impl UnwindSafe for SvgImage
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