WriterLike

Trait WriterLike 

Source
pub trait WriterLike {
    // Required method
    fn write(&self, writer: &mut Writer);

    // Provided methods
    fn to_stringized(&self) -> String { ... }
    fn to_sanitized(&self) -> String { ... }
    fn to_expressionized(&self) -> String { ... }
}

Required Methods§

Source

fn write(&self, writer: &mut Writer)

Serialize this expression with the given Writer.

Provided Methods§

Source

fn to_stringized(&self) -> String

Return a string representation (raw unsafe output).

Source

fn to_sanitized(&self) -> String

Return a sanitized string representation (escaped for safe output).

Source

fn to_expressionized(&self) -> String

Return a sanitized string representation (escaped for safe output).

Implementors§