pub trait Sealed {
// Required method
fn format_into<V>(
&self,
output: &mut (impl Write + ?Sized),
value: &V,
state: &mut V::State,
) -> Result<usize, Format>
where V: ComponentProvider;
// Provided method
fn format<V>(
&self,
value: &V,
state: &mut V::State,
) -> Result<String, Format>
where V: ComponentProvider { ... }
}Available on crate feature
formatting only.Expand description
Format the item using a format description, the intended output, and the various components.
Required Methods§
Sourcefn format_into<V>(
&self,
output: &mut (impl Write + ?Sized),
value: &V,
state: &mut V::State,
) -> Result<usize, Format>where
V: ComponentProvider,
fn format_into<V>(
&self,
output: &mut (impl Write + ?Sized),
value: &V,
state: &mut V::State,
) -> Result<usize, Format>where
V: ComponentProvider,
Format the item into the provided output, returning the number of bytes written.
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.