#[non_exhaustive]pub struct StaticDiagnostic { /* private fields */ }
Expand description
A diagnostic that stores key-value pairs in a static global map.
§Example
use logforth_core::diagnostic::StaticDiagnostic;
let mut diagnostic = StaticDiagnostic::default();
diagnostic.insert("key", "value");
Implementations§
Trait Implementations§
Source§impl Clone for StaticDiagnostic
impl Clone for StaticDiagnostic
Source§fn clone(&self) -> StaticDiagnostic
fn clone(&self) -> StaticDiagnostic
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StaticDiagnostic
impl Debug for StaticDiagnostic
Source§impl Default for StaticDiagnostic
impl Default for StaticDiagnostic
Source§fn default() -> StaticDiagnostic
fn default() -> StaticDiagnostic
Returns the “default value” for a type. Read more
Source§impl Diagnostic for &'static StaticDiagnostic
impl Diagnostic for &'static StaticDiagnostic
Auto Trait Implementations§
impl Freeze for StaticDiagnostic
impl RefUnwindSafe for StaticDiagnostic
impl Send for StaticDiagnostic
impl Sync for StaticDiagnostic
impl Unpin for StaticDiagnostic
impl UnwindSafe for StaticDiagnostic
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