pub struct RelativeSpec {
pub sign: i8,
pub amount: i32,
pub unit: TimeUnit,
}Fields§
§sign: i8-1 for past (“ago”), +1 for future (“in”)
amount: i32§unit: TimeUnitTrait Implementations§
Source§impl Clone for RelativeSpec
impl Clone for RelativeSpec
impl Copy for RelativeSpec
Source§impl Debug for RelativeSpec
impl Debug for RelativeSpec
impl Eq for RelativeSpec
Source§impl PartialEq for RelativeSpec
impl PartialEq for RelativeSpec
impl StructuralPartialEq for RelativeSpec
Auto Trait Implementations§
impl Forget for RelativeSpec
impl Freeze for RelativeSpec
impl Move for RelativeSpec
impl RefUnwindSafe for RelativeSpec
impl Send for RelativeSpec
impl Sync for RelativeSpec
impl Unpin for RelativeSpec
impl UnsafeUnpin for RelativeSpec
impl UnwindSafe for RelativeSpec
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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