Expand description
§Crusty Traits Core
This module provides core traits and types for creating C-compatible vtables for Rust traits.
It includes the fundamental building blocks: CRef, CRefMut, CRepr, CDrop, and AsVTable.
§Core Types
CRef- A C-compatible reference to a trait objectCRefMut- A C-compatible mutable reference to a trait objectCRepr- A C-compatible representation of a trait object with its vtableCDrop- A trait for dropping objects in a C-compatible wayAsVTable- A trait for converting types to vtables
These types work together to enable safe FFI interactions with Rust trait objects.
Structs§
- CRef
- A reference to a C-compatible object.
- CRefMut
- A reference to a C-compatible object.
- CRepr
- A trait that represents a buffer that can be converted to a C-compatible slice.