Struct timespan::DelayedFormat

source ·
pub struct DelayedFormat<'a, T> {
    pub span: Span<T>,
    pub fmt: &'a str,
    pub start: &'a str,
    pub end: &'a str,
}
Expand description

An instance of this type gets created when issuing a format on a span.

In theory this approach for formatting reduces the amount of memory used but the implementation is currently using more memory than it should.

Therefore this only eases the handling when formatting spans with a custom format string.

Fields

span: Span<T>fmt: &'a strstart: &'a strend: &'a str

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more
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.