TodayHelper

Trait TodayHelper 

Source
pub trait TodayHelper<T> {
    // Required methods
    fn end_of_today() -> NaiveDateTime;
    fn is_today(&self) -> bool;
    fn begin_of_today() -> NaiveDateTime;
}

Required Methods§

Source

fn end_of_today() -> NaiveDateTime

English: Return the end of today

中文:返回今天的结束时间

Source

fn is_today(&self) -> bool

English: Is the given date today

中文:判断是否是今天

Source

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.

Implementations on Foreign Types§

Source§

impl TodayHelper<&NaiveDate> for NaiveDate

Source§

impl TodayHelper<&NaiveDateTime> for NaiveDateTime

Implementors§