[][src]Module mksvg::args

The aim of the args method is to make a list of svg arguments easy to compose

They also remove the complication of separating styles, transforms, and standard xml arguments

each args function consumes, modifies and returns it's input so that they can be chained.

use mksvg::args::{Args,SvgArg};
let a = Args::new().x(4).stroke("black").translate(4,5);
assert_eq!(r#"x="4" style="stroke:black;" transform="translate(4,5) " "#,
&format!("{}",a));

the SvgWrite methods (from mod write) accept an Args object.

Structs

Args

Traits

SvgArg