Struct genco::Formatter [] [src]

pub struct Formatter<'write> { /* fields omitted */ }

Formatter implementation for write types.

Methods

impl<'write> Formatter<'write>
[src]

[src]

Create a new write formatter.

[src]

Write the given string.

[src]

Push a new line.

[src]

Push a new line, unless the current line is empty.

[src]

Increase indentation level.

[src]

Decrease indentation level.

Trait Implementations

impl<'write> Write for Formatter<'write>
[src]

[src]

Writes a slice of bytes into this writer, returning whether the write succeeded. Read more

1.1.0
[src]

Writes a [char] into this writer, returning whether the write succeeded. Read more

1.0.0
[src]

Glue for usage of the [write!] macro with implementors of this trait. Read more