pub struct Unix;Expand description
POSIX seconds on the UTC civil axis.
Trait Implementations§
Source§impl<S> ContextConversionTarget<S> for Unix
impl<S> ContextConversionTarget<S> for Unix
type Output = EncodedTime<UTC, Unix>
fn convert_with( src: Time<S>, ctx: &TimeContext, ) -> Result<Self::Output, ConversionError>
Source§impl ContextConversionTarget<UTC> for Unix
impl ContextConversionTarget<UTC> for Unix
type Output = EncodedTime<UTC, Unix>
fn convert_with( src: Time<UTC>, ctx: &TimeContext, ) -> Result<Self::Output, ConversionError>
Source§impl<S> ConversionTarget<S> for Unix
impl<S> ConversionTarget<S> for Unix
Source§fn try_convert(src: Time<S>) -> Result<Self::Output, ConversionError>
fn try_convert(src: Time<S>) -> Result<Self::Output, ConversionError>
Snapshots the active time-data bundle at call time via
TimeContext::new. For reproducible pipelines, prefer
to_with::<Unix>(&ctx).
type Output = EncodedTime<UTC, Unix>
Source§impl Ord for Unix
impl Ord for Unix
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Unix
impl PartialOrd for Unix
Source§impl RepresentationForScale<UTC> for Unix
impl RepresentationForScale<UTC> for Unix
fn try_from_time( time: Time<UTC>, ctx: &TimeContext, ) -> Result<Second, ConversionError>
fn try_into_time( raw: Second, ctx: &TimeContext, ) -> Result<Time<UTC>, ConversionError>
Source§impl TimeRepresentation for Unix
impl TimeRepresentation for Unix
impl Copy for Unix
impl Eq for Unix
impl StructuralPartialEq for Unix
Auto Trait Implementations§
impl Freeze for Unix
impl RefUnwindSafe for Unix
impl Send for Unix
impl Sync for Unix
impl Unpin for Unix
impl UnsafeUnpin for Unix
impl UnwindSafe for Unix
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.