pub(crate) struct Erased;Expand description
Marker type used when type-erasing reports or attachments.
This zero-sized type serves as a placeholder in generic type parameters
when the actual concrete type has been erased. For example,
AttachmentData<Erased> represents an attachment whose concrete type
is unknown at the current scope.
Using a distinct marker type (rather than ()) makes the intent clearer
in type signatures and error messages.
Auto Trait Implementations§
impl Freeze for Erased
impl RefUnwindSafe for Erased
impl Send for Erased
impl Sync for Erased
impl Unpin for Erased
impl UnwindSafe for Erased
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more