Crate xbf_rs

Source
Expand description

This crate is a Rust implementaton of the XBF serialization and deserialization format.

The format itself is described here

Modules§

prelude
The XBF prelude imports the various conversions traits to make creating xbf types as ergonomic as possible. The intention is to include use xbf_rs::prelude::*; and have easy access to the majority of things you’ll need.

Structs§

ElementsNotHomogenousError
Error type for XbfVec
XbfStruct
A struct as defined by the XBF specification.
XbfStructMetadata
Metadata for a Struct type.
XbfVec
A vector type as defined by the XBF specification.
XbfVecMetadata
Metadata for a Vec type.

Enums§

StructError
Error type for creating an XbfStruct.
XbfMetadata
XbfPrimitive
A primitive type as defined by the XBF specification.
XbfPrimitiveMetadata
Metadata for a primitive type.
XbfType

Constants§

STRUCT_METADATA_DISCRIMINANT
The metadata discriminant for a Struct type.
VEC_METADATA_DISCRIMINANT
The metadata discriminant for a Vec type.

Traits§

NativeToXbfPrimitive
A trait for converting native Rust types to XbfPrimitive types.
XbfMetadataUpcast
XbfTypeUpcast