Trait tracing::Value

source ·
pub trait Value: Sealed {
    // Required method
    fn record(&self, key: &Field, visitor: &mut dyn Visit);
}
Expand description

A field value of an erased type.

Implementors of Value may call the appropriate typed recording methods on the visitor passed to their record method in order to indicate how their data should be recorded.

Required Methods§

source

fn record(&self, key: &Field, visitor: &mut dyn Visit)

Visits this value with the given Visitor.

Trait Implementations§

source§

impl Debug for dyn Value

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for dyn Value

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Implementations on Foreign Types§

source§

impl Value for i32

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

source§

impl Value for str

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

source§

impl Value for i128

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

source§

impl Value for f32

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

source§

impl Value for f64

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

source§

impl Value for u128

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

source§

impl Value for i64

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

source§

impl Value for i8

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

source§

impl Value for u32

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

source§

impl Value for isize

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

source§

impl<'a, T> Value for &'a Twhere T: Value + 'a + ?Sized,

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

source§

impl<'a, T> Value for &'a mut Twhere T: Value + 'a + ?Sized,

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

source§

impl Value for u64

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

source§

impl Value for bool

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

source§

impl Value for u16

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

source§

impl Value for u8

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

source§

impl Value for usize

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

source§

impl Value for i16

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

Implementors§