Expand description
Flexbuffers is a high performance schemaless binary data format designed at Google. It is complementary to the schema-ed format Flatbuffers. See Flexbuffer Internals for details on the binary format.
See the examples for usage:
This rust implementation is in progress and, until the 1.0 release, breaking API changes may happen between minor versions.
Structs§
- Blob
- This struct, when pushed will be serialized as a
FlexBufferType::Blob
. - Builder
- Use this struct to build a Flexbuffer.
- Builder
Options - Options for sharing data within a flexbuffer.
- Flexbuffer
Serializer - Flexbuffer Serializer. This should be used to serialize structs.
- Indirect
Float - This struct, when pushed, will be serialized as a
FlexBufferType::IndirectFloat
. - Indirect
Int - This struct, when pushed, will be serialized as a
FlexBufferType::IndirectInt
. - IndirectU
Int - This struct, when pushed, will be serialized as a
FlexBufferType::IndirectUInt
. - MapBuilder
- Builds a Flexbuffer map, returned by a Builder.
- MapReader
- Allows indexing on a flexbuffer map.
- Reader
Reader
s allow access to data stored in a Flexbuffer.- Reader
Iterator - Iterates over a flexbuffer vector, typed vector, or map. Yields Readers.
- Vector
Builder - Builds a Flexbuffer vector, returned by a Builder.
- Vector
Reader - Allows indexing on any flexbuffer vector type, (heterogenous vector, typed vector, or fixed length typed vector).
Enums§
- BitWidth
- Represents the size of Flexbuffers data.
- Deserialization
Error - Errors that may happen when deserializing a flexbuffer with serde.
- Flex
Buffer Type - Represents all the valid types in a flexbuffer.
- Reader
Error - All the possible errors when reading a flexbuffer.
- Serialization
Error - Errors that may happen with Serde.
Traits§
- Buffer
- The underlying buffer that is used by a flexbuffer Reader.
- Pushable
- Types that implement the Pushable trait can be written into a Flexbuffer.
Functions§
- from_
buffer - Deserialize a type from a flexbuffer.
- from_
slice - Deserialize a type from a flexbuffer.
- singleton
- Builds a Flexbuffer with the single pushed value as the root.
- to_vec
- Serialize as a flexbuffer into a vector.