Trait escapade::EscapedWrite
[−]
[src]
pub trait EscapedWrite<T> { fn write_str(&mut self, value: T) -> Result<()>; }
Escaped writing to buffers
This trait handles writing of different kinds of values
to an EscapedWriter
. It is intended to be implemented
for EscapedWriter
for each kind of value that is allowed
to be written to.
The implementor must properly escape the passed value before writing it.
Required Methods
fn write_str(&mut self, value: T) -> Result<()>
Write the passed string-like value to the writer, returning the writers Result.
Implementors
impl<X: AsRef<str>, W: Write> EscapedWrite<Escaped<X>> for EscapedWriter<W>
impl<'a, X: Escapable, W: Write> EscapedWrite<X> for EscapedWriter<W>