Crate turbo_bincode

Crate turbo_bincode 

Source

Modules§

either
indexmap
indexset
mime_option
owned_cow
Overrides the default BorrowDecode implementation to always use the owned representation of Cow, so that the resulting BorrowDecode type is independent of the Cow’s lifetime.
ringset
serde_self_describing
Helpers for serializing serde-compatible types inside of a bincode Encode or Decode implementation using a self-describing format. This works with types that #[bincode(serde)] does not support.
smallvec

Macros§

impl_decode_for_turbo_bincode_decode
impl_encode_for_turbo_bincode_encode

Structs§

TurboBincodeReader
This is equivalent to bincode::de::read::SliceReader, but with a little unsafe code to avoid some redundant bounds checks, and pub access to the underlying buffer.
TurboBincodeWriter

Constants§

TURBO_BINCODE_CONFIG

Traits§

TurboBincodeDecode
Represents a type that can only be decoded with a TurboBincodeDecoder and an empty () context.
TurboBincodeEncode
Represents a type that can only be encoded with a TurboBincodeEncoder.

Functions§

turbo_bincode_decode
Decode using a TurboBincodeDecoder and check that the entire slice was consumed. Returns a DecodeError::ArrayLengthMismatch if some of the slice is not consumed during decoding.
turbo_bincode_encode
Encode the value into a new [SmallVec] using a TurboBincodeEncoder.
turbo_bincode_encode_into

Type Aliases§

AnyDecodeFn
AnyEncodeFn
TurboBincodeBuffer
TurboBincodeDecoder
TurboBincodeEncoder