Skip to main content

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§

HashWriter
A Writer that sinks bytes directly into a [DeterministicHasher] instead of a buffer.
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
TURBO_BINCODE_HASH_CONFIG
Same as standard config, but since we aren’t encoding we don’t benefit from varint optimizations.

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§

new_hash_encoder
Creates a new HashEncoder that encodes directly to the given hasher.
new_turbo_bincode_decoder
new_turbo_bincode_encoder
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
HashEncoder
An encoder that writes directly to a [DeterministicHasher].
TurboBincodeBuffer
TurboBincodeDecoder
TurboBincodeEncoder