pub struct Svg<'a> {
pub items: Vec<&'a dyn ToSvgStr>,
pub siblings: Vec<Svg<'a>>,
pub viewbox: ViewBox,
pub style: Style,
}
Fields§
§items: Vec<&'a dyn ToSvgStr>
§siblings: Vec<Svg<'a>>
§viewbox: ViewBox
§style: Style
Implementations§
source§impl<'a> Svg<'a>
impl<'a> Svg<'a>
pub fn and(self, sibling: Svg<'a>) -> Self
pub fn with_style(self, style: &Style) -> Self
pub fn with_margin(self, margin: f32) -> Self
pub fn with_color(self, color: Color) -> Self
pub fn with_opacity(self, opacity: f32) -> Self
pub fn with_fill_color(self, fill: Color) -> Self
pub fn with_fill_opacity(self, fill_opacity: f32) -> Self
pub fn with_stroke_width(self, stroke_width: f32) -> Self
pub fn with_stroke_opacity(self, stroke_opacity: f32) -> Self
pub fn with_stroke_color(self, stroke_color: Color) -> Self
pub fn with_radius(self, radius: f32) -> Self
pub fn svg_str(&self) -> String
pub fn viewbox(&self) -> ViewBox
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Svg<'a>
impl<'a> !Send for Svg<'a>
impl<'a> !Sync for Svg<'a>
impl<'a> Unpin for Svg<'a>
impl<'a> !UnwindSafe for Svg<'a>
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