Trait tagger::WriteAttr [−][src]
Functions the user can call to add attributes.
AttributeWriter
could have implemented these, but lets use a trait to simplify lifetimes.
Provided methods
fn polyline_data<F>(&mut self, func: F) -> Result<&mut Self, Error> where
F: FnOnce(&'x mut PolyLineBuilder<'y, Self>) -> Result<&'x mut PolyLineBuilder<'y, Self>, Error>,
[src]
F: FnOnce(&'x mut PolyLineBuilder<'y, Self>) -> Result<&'x mut PolyLineBuilder<'y, Self>, Error>,
Write the data attribute for a svg polyline.
fn path_data<F>(&mut self, func: F) -> Result<&mut Self, Error> where
F: FnOnce(&'x mut PathBuilder<'y, Self>) -> Result<&'x mut PathBuilder<'y, Self>, Error>,
[src]
F: FnOnce(&'x mut PathBuilder<'y, Self>) -> Result<&'x mut PathBuilder<'y, Self>, Error>,
Write the data attribute for a svg path.
fn with_attr(
&mut self,
s: &str,
func: impl FnOnce(&mut Self) -> Result
) -> Result<&mut Self, Error>
[src]
&mut self,
s: &str,
func: impl FnOnce(&mut Self) -> Result
) -> Result<&mut Self, Error>
fn attr(&mut self, s: &str, val: impl Display) -> Result<&mut Self, Error>
[src]
Write an attribute with the specified tag and value using the values fmt::Display
trait.