pub trait FromFineDateTime: Sized {
type Error: Error;
// Required method
fn from_fine_datetime(
date: Date,
hour: u8,
minute: u8,
second: u8,
subseconds: Duration,
) -> Result<Self, Self::Error>;
}Expand description
This trait may be implemented for time points that can be created based on “fine” date-time pairs, which have subsecond accuracy.
Required Associated Types§
Required Methods§
Sourcefn from_fine_datetime(
date: Date,
hour: u8,
minute: u8,
second: u8,
subseconds: Duration,
) -> Result<Self, Self::Error>
fn from_fine_datetime( date: Date, hour: u8, minute: u8, second: u8, subseconds: Duration, ) -> Result<Self, Self::Error>
Maps a given combination of date and fine time-of-day to an instant on this time scale. May return an error if the input does not represent a valid combination of date and time-of-day.
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.