Trait TimeConversion

Source
pub trait TimeConversion<T>: OutputTimeRepresentation {
    // Required method
    fn into(from: <Self as TimeRepresentation>::InnerTime) -> T;
}
Expand description

Convert the InnerTime of an OutputTimeRepresentation to a generic type T.

Required Methods§

Source

fn into(from: <Self as TimeRepresentation>::InnerTime) -> T

Converts an InnerTime to T

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§