rootcause_internals/util.rs
1//! Internal utility types and traits.
2
3/// Marker type used when type-erasing reports or attachments.
4///
5/// This zero-sized type serves as a placeholder in generic type parameters
6/// when the actual concrete type has been erased. For example,
7/// `AttachmentData<Erased>` represents an attachment whose concrete type
8/// is unknown at the current scope.
9///
10/// Using a distinct marker type (rather than `()`) makes the intent clearer
11/// in type signatures and error messages.
12pub(crate) struct Erased;