Struct maud::Markup
[−]
[src]
pub struct Markup<F> { // some fields omitted }
A block of HTML markup, as returned by the html!
macro.
Use .to_string()
to convert it to a String
, or .render()
to
write it directly to a handle.
Methods
impl<F> Markup<F> where F: Fn(&mut Write) -> Result
[src]
fn render<W: Write>(&self, w: &mut W) -> Result<()>
Renders the markup to a std::io::Write
.
fn render_fmt(&self, w: &mut Write) -> Result
Renders the markup to a std::fmt::Write
.