pub struct CompactDiagnostic<T> { /* private fields */ }Expand description
Exact diagnostic evidence, inline on 64-bit targets and boxed on 32-bit targets.
Only the wide cold-path causes use this holder. Boxing on 32-bit targets
preserves the existing compact Error budget while keeping every diagnostic
value. Common layout, timeout, HDR and withheld-metadata causes stay inline.
Implementations§
Source§impl<T> CompactDiagnostic<T>
impl<T> CompactDiagnostic<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Recover the evidence without another allocation.
Trait Implementations§
Source§impl<T: Clone> Clone for CompactDiagnostic<T>
impl<T: Clone> Clone for CompactDiagnostic<T>
Source§impl<T: Debug> Debug for CompactDiagnostic<T>
impl<T: Debug> Debug for CompactDiagnostic<T>
Source§impl<T> Deref for CompactDiagnostic<T>
impl<T> Deref for CompactDiagnostic<T>
Source§impl<T: Display> Display for CompactDiagnostic<T>
impl<T: Display> Display for CompactDiagnostic<T>
impl<T: Eq> Eq for CompactDiagnostic<T>
Source§impl<T: Hash> Hash for CompactDiagnostic<T>
impl<T: Hash> Hash for CompactDiagnostic<T>
Source§impl<T: PartialEq> PartialEq for CompactDiagnostic<T>
impl<T: PartialEq> PartialEq for CompactDiagnostic<T>
impl<T: PartialEq> StructuralPartialEq for CompactDiagnostic<T>
Auto Trait Implementations§
impl<T> Freeze for CompactDiagnostic<T>where
T: Freeze,
impl<T> RefUnwindSafe for CompactDiagnostic<T>where
T: RefUnwindSafe,
impl<T> Send for CompactDiagnostic<T>where
T: Send,
impl<T> Sync for CompactDiagnostic<T>where
T: Sync,
impl<T> Unpin for CompactDiagnostic<T>where
T: Unpin,
impl<T> UnsafeUnpin for CompactDiagnostic<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CompactDiagnostic<T>where
T: UnwindSafe,
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