time::formatting::formattable

Trait Formattable

Source
pub trait Formattable: Sealed { }
Available on crate feature formatting only.
Expand description

A type that describes a format.

Implementors of Formattable are format descriptions.

Date::format and Time::format each use a format description to generate a String from their data. See the respective methods for usage examples.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Formattable for [BorrowedFormatItem<'_>]

Source§

impl Formattable for [OwnedFormatItem]

Implementors§