Module prelude

Module prelude 

Source
Expand description

The prelude.

Re-exports§

pub use crate::alloc::SMap;
pub use crate::alloc::SVec;
pub use crate::alloc::SchemaMap;
pub use crate::alloc::SchemaVec;
pub use bones_utils;
pub use crate::ser_de::*;
pub use crate::ptr::*;
pub use crate::registry::*;

Structs§

EnumSchemaInfo
Schema data for an enum.
Schema
A schema registered with the SCHEMA_REGISTRY.
SchemaData
Schema information describing the memory layout of a type.
SchemaLayoutInfo
Layout information computed for SchemaData.
StructFieldInfo
A field in a StructSchemaInfo.
StructSchemaInfo
Schema data for a struct.
Unsafe
A wrapper struct that marks it unsafe to both create and access the inner value.
VariantInfo
Information about an enum variant for EnumSchemaInfo.

Enums§

EnumTagType
A type for an enum tag for EnumSchemaInfo.
Primitive
A type of primitive.
SchemaKind
A schema describes the data layout of a type, to enable dynamic access to the type’s data through a pointer.

Traits§

FromType
Trait implemented for types that can produce an instance of themselves from a Rust type.
HasSchema
Trait implemented for types that have a Schema.

Derive Macros§

HasSchema
Derive macro for the HasSchema trait.