datetime

Trait ISO

Source
pub trait ISO: Sized {
    // Required method
    fn fmt(&self, f: &mut Formatter<'_>) -> Result;

    // Provided method
    fn iso(&self) -> ISOString<'_, Self> { ... }
}

Required Methods§

Source

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Provided Methods§

Source

fn iso(&self) -> ISOString<'_, Self>

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.

Implementors§