Trait crockford::Write [] [src]

pub trait Write {
    fn write(&mut self, u: u8);
}

Represents writable buffer capable of receiving encoded data.

Write is implemented on Vec<u8> and String, but you are free to implement it on your own types. One conceivable purpose would be to allow for lowercase encoding output by inverting the cap bit before writing.

Required Methods

Writes a single byte (or, more precisely, a 5-bit group) to the output.

Implementations on Foreign Types

impl Write for String
[src]

[src]

impl Write for Vec<u8>
[src]

[src]

Implementors