Enum dogs::metric_logger::Metric[][src]

pub enum Metric {
    Empty,
    LargeNumber(f64),
    Time(f32),
    Text(String),
    Int(i64),
}
Expand description

Defines a metric to be displayed

Variants

Empty

no data

LargeNumber

use formatting like 5.4M, 4.7K, etc.

Tuple Fields of LargeNumber

0: f64
Time

number of seconds (milliseconds precision)

Tuple Fields of Time

0: f32
Text

standard text

Tuple Fields of Text

0: String
Int

int pretty print: example: 1000000 -> “1.000.000”

Tuple Fields of Int

0: i64

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.