pub struct Encoder<W: Write> {
    pub inner: Encoder<W>,
}

Fields

inner: Encoder<W>

Implementations

A non-allocating CBOR encoder

Constructs an Encoder around the writer

Encode a bool value

Encode a u8 value

Encode a u16 value

Encode a u32 value

Encode a u64 value

Encode an i8 value

Encode an i16 value

Encode an i32 value

Encode an i64 value

Encode an f32 value

Encode an f64 value

Encode a char value

Encode a byte slice

Encode a string slice

Encode a null

Begin encoding an array with len elements

Begin encoding an array with indefinite length

Begin encoding a map with len elements

Begin encoding a map with indefinite length

Begin encoding a byte slice with indefinite length Use Encoder::end to terminate

Begin encoding an indefinite number of string slices Use Encoder::end to terminate

Terminate an indefinite collection

Returns the inner writer

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

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.