pub trait Sealed {
// Required method
fn format_into(
&self,
output: &mut impl Write,
date: Option<Date>,
time: Option<Time>,
offset: Option<UtcOffset>,
) -> Result<usize, Format>;
// Provided method
fn format(
&self,
date: Option<Date>,
time: Option<Time>,
offset: Option<UtcOffset>,
) -> Result<String, Format> { ... }
}
Available on crate feature
formatting
only.Expand description
Format the item using a format description, the intended output, and the various components.
Required Methods§
Provided Methods§
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.