pub trait TimeValLike: Sized {
Show 13 methods
// Required methods
fn seconds(seconds: i64) -> Self;
fn milliseconds(milliseconds: i64) -> Self;
fn microseconds(microseconds: i64) -> Self;
fn nanoseconds(nanoseconds: i64) -> Self;
fn num_seconds(&self) -> i64;
fn num_milliseconds(&self) -> i64;
fn num_microseconds(&self) -> i64;
fn num_nanoseconds(&self) -> i64;
// Provided methods
fn zero() -> Self { ... }
fn hours(hours: i64) -> Self { ... }
fn minutes(minutes: i64) -> Self { ... }
fn num_hours(&self) -> i64 { ... }
fn num_minutes(&self) -> i64 { ... }
}
Required Methods§
fn seconds(seconds: i64) -> Self
fn milliseconds(milliseconds: i64) -> Self
fn microseconds(microseconds: i64) -> Self
fn nanoseconds(nanoseconds: i64) -> Self
fn num_seconds(&self) -> i64
fn num_milliseconds(&self) -> i64
fn num_microseconds(&self) -> i64
fn num_nanoseconds(&self) -> i64
Provided Methods§
fn zero() -> Self
fn hours(hours: i64) -> Self
fn minutes(minutes: i64) -> Self
fn num_hours(&self) -> i64
fn num_minutes(&self) -> i64
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.