pub struct PatternEncoder { /* private fields */ }
Expand description

An Encoder configured via a format string.

Implementations

Creates a PatternEncoder from a pattern string.

The pattern string syntax is documented in the pattern module.

Trait Implementations

Formats the value using the given formatter. Read more

Returns a PatternEncoder using the default pattern of {d} {l} {t} - {m}{n}.

Returns the “default value” for a type. Read more

Encodes the Record into bytes and writes them.

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.

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.