crusty_traits_core 0.1.0

Core types and traits for crusty_traits - FFI-safe trait objects
Documentation
  • Coverage
  • 100%
    8 out of 8 items documented0 out of 4 items with examples
  • Size
  • Source code size: 9.23 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.26 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • n1ght-hunter/crusty_traits
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • n1ght-hunter

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 object
  • [CRefMut] - A C-compatible mutable reference to a trait object
  • [CRepr] - A C-compatible representation of a trait object with its vtable
  • [CDrop] - A trait for dropping objects in a C-compatible way
  • [AsVTable] - A trait for converting types to vtables

These types work together to enable safe FFI interactions with Rust trait objects.