Struct kernel::buffer::Buffer[][src]

pub struct Buffer<'a> { /* fields omitted */ }
Expand description

A pre-allocated buffer that implements core::fmt::Write.

Consecutive writes will append to what has already been written. Writes that don’t fit in the buffer will fail.

Implementations

Create a new buffer from an existing array.

Number of bytes that have already been written to the buffer. This will always be less than the length of the original array.

Trait Implementations

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

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

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.