Skip to main content

Format

Trait Format 

Source
pub trait Format {
    // Required method
    fn format(&self, format: &str) -> Result<String, DateError>;
}
Expand description

A trait for objects that can be formatted

Required Methods§

Source

fn format(&self, format: &str) -> Result<String, DateError>

Format this object using the given format string

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§