pub trait TodayHelper<T> {
// Required methods
fn end_of_today() -> NaiveDateTime;
fn is_today(&self) -> bool;
fn begin_of_today() -> NaiveDateTime;
}Required Methods§
Sourcefn end_of_today() -> NaiveDateTime
fn end_of_today() -> NaiveDateTime
English: Return the end of today
中文:返回今天的结束时间
Sourcefn begin_of_today() -> NaiveDateTime
fn begin_of_today() -> NaiveDateTime
English: Return the start of today
中文:返回今天的开始时间
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.