Skip to main content

Module storable

Module storable 

Source
Expand description

Implementation of the #[derive(Storable)] macro.

Functionsยง

derive_impl ๐Ÿ”’
Implements the Storable derive macro for structs and #[repr(u8)] unit enums.
derive_struct_impl ๐Ÿ”’
derive_unit_enum_impl ๐Ÿ”’
gen_delete_impl ๐Ÿ”’
Generate fn delete() implementation.
gen_handler_struct ๐Ÿ”’
Generate a handler struct for the storable type.
gen_load_impl ๐Ÿ”’
Generate fn load() implementation.
gen_packing_module_from_ir ๐Ÿ”’
Generate a compile-time module that calculates the packing layout from IR.
gen_store_impl ๐Ÿ”’
Generate fn store() implementation.
has_repr_u8 ๐Ÿ”’
validate_sequential_discriminants ๐Ÿ”’