Enum postcard_cobs::PushResult[][src]

pub enum PushResult {
    AddSingle(u8),
    ModifyFromStartAndSkip((usize, u8)),
    ModifyFromStartAndPushAndSkip((usize, u8, u8)),
}
Expand description

PushResult is used to represent the changes to an (encoded) output data buffer when an unencoded byte is pushed into EncoderState.

Variants

AddSingle

The returned byte should be placed at the current end of the data buffer

Tuple Fields of AddSingle

0: u8
ModifyFromStartAndSkip

The byte at the given index should be replaced with the given byte. Additionally, a placeholder byte should be inserted at the current end of the output buffer to be later modified

Tuple Fields of ModifyFromStartAndSkip

0: (usize, u8)
ModifyFromStartAndPushAndSkip

The byte at the given index should be replaced with the given byte. Then, the last u8 in this tuple should be inserted at the end of the current output buffer. Finally, a placeholder byte should be inserted at the current end of the output buffer to be later modified

Tuple Fields of ModifyFromStartAndPushAndSkip

0: (usize, u8, u8)

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.