Skip to main content

DateTimeFormatProvider

Trait DateTimeFormatProvider 

Source
pub trait DateTimeFormatProvider {
    // Required method
    fn get_date_time_format(&self) -> DateTimeFormatInfoRef<'_>;
}
Expand description

Something that supplies date and time conventions: a CultureInfo or a DateTimeFormatInfo (the role of IFormatProvider in the .NET date and time members).

Required Methods§

Source

fn get_date_time_format(&self) -> DateTimeFormatInfoRef<'_>

The conventions to format and parse with.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl DateTimeFormatProvider for Rc<DateTimeFormatInfo>

Source§

impl<T: DateTimeFormatProvider + ?Sized> DateTimeFormatProvider for &T

Implementors§