Crate bones_schema
source ·Expand description
Simple reflection system based on the #[repr(C)]
memory layout.
You can derive HasSchema
for your Rust types to unlock integration with the bones_schema
ecosystem, including bones_ecs
and bones_asset
.
Modules§
- Allocation and collection utilities.
- The prelude.
- Schema-aware smart pointers.
- Traits implementing raw function calls for cloning, dropping, and creating default values for Rust types.
- Global schema registry.
- Serde implementations for
Schema
.
Structs§
- Schema data for an enum.
- A schema registered with the
SCHEMA_REGISTRY
. - Schema information describing the memory layout of a type.
- Layout information computed for
SchemaData
. - A field in a
StructSchemaInfo
. - Schema data for a struct.
- A wrapper struct that marks it unsafe to both create and access the inner value.
- Information about an enum variant for
EnumSchemaInfo
.
Enums§
- A type for an enum tag for
EnumSchemaInfo
. - A type of primitive.
- A schema describes the data layout of a type, to enable dynamic access to the type’s data through a pointer.
Traits§
- Trait implemented for types that can produce an instance of themselves from a Rust type.
- Trait implemented for types that have a
Schema
.
Derive Macros§
- Derive macro for the HasSchema trait.