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
The returned byte should be placed at the current end of the data buffer
Tuple Fields of AddSingle
0: u8
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
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