pub struct KV<V>(pub &'static str, pub V);
Expand description
A simple static key-value pair.
Tuple Fields§
§0: &'static str
§1: V
Trait Implementations§
source§impl<V, T> EnrichSpan<T> for KV<V>where
V: Value,
impl<V, T> EnrichSpan<T> for KV<V>where
V: Value,
fn enrich_span(&self, span: &Span, _t: &T)
Auto Trait Implementations§
impl<V> Freeze for KV<V>where
V: Freeze,
impl<V> RefUnwindSafe for KV<V>where
V: RefUnwindSafe,
impl<V> Send for KV<V>where
V: Send,
impl<V> Sync for KV<V>where
V: Sync,
impl<V> Unpin for KV<V>where
V: Unpin,
impl<V> UnwindSafe for KV<V>where
V: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)