pub struct Calendar { /* private fields */ }Implementations§
Source§impl Calendar
impl Calendar
pub fn from_time<Tz: TimeZone>(time: &DateTime<Utc>, zone: &Tz) -> Self
pub fn num_months_to(&self, calendar: &Self) -> Option<i64>
pub fn num_years_to(&self, calendar: &Self) -> Option<i64>
pub fn subtract_month<Tz: TimeZone>( &mut self, count: i64, zone: &Tz, ) -> DateTime<Utc>
pub fn subtract_year<Tz: TimeZone>( &mut self, count: i64, zone: &Tz, ) -> DateTime<Utc>
Auto Trait Implementations§
impl Freeze for Calendar
impl RefUnwindSafe for Calendar
impl Send for Calendar
impl Sync for Calendar
impl Unpin for Calendar
impl UnsafeUnpin for Calendar
impl UnwindSafe for Calendar
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more