[][src]Struct geo_svg::Svg

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: ViewBoxstyle: Style

Methods

impl<'a> Svg<'a>[src]

pub fn and(self, sibling: Svg<'a>) -> Self[src]

pub fn with_style(self, style: &Style) -> Self[src]

pub fn with_margin(self, margin: f32) -> Self[src]

pub fn with_color(self, color: Color) -> Self[src]

pub fn with_opacity(self, opacity: f32) -> Self[src]

pub fn with_fill_color(self, fill: Color) -> Self[src]

pub fn with_fill_opacity(self, fill_opacity: f32) -> Self[src]

pub fn with_stroke_width(self, stroke_width: f32) -> Self[src]

pub fn with_stroke_opacity(self, stroke_opacity: f32) -> Self[src]

pub fn with_stroke_color(self, stroke_color: Color) -> Self[src]

pub fn with_radius(self, radius: f32) -> Self[src]

pub fn svg_str(&self) -> String[src]

pub fn viewbox(&self) -> ViewBox[src]

Trait Implementations

impl<'a> ToSvgStr for Svg<'a>[src]

impl<'a> Clone for Svg<'a>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'a> Display for Svg<'a>[src]

Auto Trait Implementations

impl<'a> Unpin for Svg<'a>

impl<'a> !Send for Svg<'a>

impl<'a> !Sync for Svg<'a>

impl<'a> !RefUnwindSafe for Svg<'a>

impl<'a> !UnwindSafe for Svg<'a>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]