Struct minicbor_io::Writer[][src]

pub struct Writer<W> { /* fields omitted */ }
Expand description

Wraps a std::io::Write and writes length-delimited CBOR values.

Implementations

Create a new writer with a max. buffer size of 512KiB.

Create a new writer with a max. buffer size of 512KiB.

Set the max. buffer size in bytes.

If length values greater than this are encoded, an Error::InvalidLen will be returned.

Get a reference to the inner writer.

Get a mutable reference to the inner writer.

Deconstruct this writer into the inner writer and the buffer.

Encode and write a CBOR value and return its size in bytes.

Flush the inner Writer.

Trait Implementations

Formats the value using the given formatter. 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.