Module report

Module report 

Source
Expand description

Type-erased report data structures.

This module implements type erasure for error reports through vtable-based dispatch. The design allows reports with any context type C to be stored uniformly while maintaining the ability to format and inspect them.

ยงStructure

ยงAllocation Strategy

Reports use Arc<ReportData<C>> for storage, enabling cheap cloning and shared ownership. The Arc is converted to a raw pointer for type erasure, then reconstructed when dropping or accessing with the concrete type.

Re-exportsยง

pub use raw::RawReport;
pub use raw::RawReportMut;
pub use raw::RawReportRef;

Modulesยง

data ๐Ÿ”’
ReportData<C> wrapper and field access.
raw ๐Ÿ”’
Type-erased report pointer types.
vtable ๐Ÿ”’
Vtable for type-erased report operations.