Skip to main content

FormatArg

Trait FormatArg 

Source
pub trait FormatArg<T> {
    // Required method
    fn format(&self, value: T) -> OsString;
}

Required Methods§

Source

fn format(&self, value: T) -> OsString

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T, F, R> FormatArg<T> for CustomFormat<F>
where F: Fn(T) -> R, R: ToString,

Source§

impl<T> FormatArg<T> for DefaultFormat
where T: ToString,