[][src]Struct mksvg::tag::Tag

pub struct Tag { /* fields omitted */ }

Implementations

impl Tag[src]

pub fn start<'a, W: SvgWrite<Err = E>, T: Display, E>(
    wr: &'a mut W,
    w: T,
    h: T
) -> Result<TransWrap<'a, E>, E>
[src]

Use this function to wrap the first svg tag, as it also writes the namespace to the top of the doc

pub fn new(name: &'static str) -> Self[src]

pub fn rect<P: Display, S: Display>(x: P, y: P, w: S, h: S) -> Self[src]

pub fn img<P: Display, S: Display>(loc: &str, x: P, y: P, w: S, h: S) -> Self[src]

pub fn ellipse<P: Display, S: Display>(cx: P, cy: P, rx: S, ry: S) -> Self[src]

pub fn path<P: Display>(p: P) -> Self[src]

pub fn g() -> Self[src]

pub fn defs() -> Self[src]

pub fn use_tag<T: Display>(href: T) -> Self[src]

pub fn clip_path() -> Self[src]

pub fn write<W: SvgWrite<Err = E>, E>(&self, w: &mut W) -> Result<(), E>[src]

pub fn wrap<'a, W: SvgWrite<Err = E>, E>(
    &self,
    w: &'a mut W
) -> TransWrap<'a, E>
[src]

Trait Implementations

impl Clone for Tag[src]

impl Debug for Tag[src]

impl Display for Tag[src]

impl PartialEq<Tag> for Tag[src]

impl StructuralPartialEq for Tag[src]

impl SvgArg for Tag[src]

Auto Trait Implementations

impl RefUnwindSafe for Tag

impl Send for Tag

impl Sync for Tag

impl Unpin for Tag

impl UnwindSafe for Tag

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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.