# tracing::field::Value - Rust
API documentation for the Rust `Value` trait in crate `tracing`.
Keywords: rust, rustlang, rust-lang, Value

# Trait tracing::field::Value [−] [src]

    pub trait Value: Sealed {
        pub fn record(&self, key: &Field, visitor: &mut dyn Visit);
    }

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

### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

Visits this value with the given `Visitor`.

Loading content...

## Trait Implementations

### `impl Debug for dyn Value + 'static` [src]

#### `pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>` [src]

Formats the value using the given formatter. Read more

### `impl Display for dyn Value + 'static` [src]

#### `pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>` [src]

Formats the value using the given formatter. Read more

## Implementations on Foreign Types

### `impl Value for bool` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for NonZeroU8` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for dyn Error + 'static` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for i64` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for i32` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for u32` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for i8` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl<'a, T> Value for &'a T where
T: Value + 'a + ?Sized,` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for NonZeroI8` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for NonZeroU32` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for str` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for NonZeroIsize` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for i16` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for u64` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for NonZeroI32` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for NonZeroU16` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for usize` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for NonZeroUsize` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for NonZeroI64` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for u16` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl<T> Value for Wrapping<T> where
T: Value,` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for NonZeroU64` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for u8` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl<'a> Value for Arguments<'a>` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for NonZeroI16` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl Value for isize` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

Loading content...

## Implementors

### `impl Value for Empty` [src]

#### `pub fn record(&self, &Field, &mut dyn Visit)` [src]

### `impl<T> Value for DebugValue<T> where
T: Debug,` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

### `impl<T> Value for DisplayValue<T> where
T: Display,` [src]

#### `pub fn record(&self, key: &Field, visitor: &mut dyn Visit)` [src]

Loading content...