pub struct UtcResolver;Expand description
Pure UTC resolver — deterministic, used by unit tests.
Trait Implementations§
Source§impl DateResolver for UtcResolver
impl DateResolver for UtcResolver
Source§fn filetime_at_midnight(&self, c: Civil) -> i64
fn filetime_at_midnight(&self, c: Civil) -> i64
FILETIME ticks (100 ns since 1601-01-01) for midnight at the start of
the given civil date, in this resolver’s time zone.
Auto Trait Implementations§
impl Freeze for UtcResolver
impl RefUnwindSafe for UtcResolver
impl Send for UtcResolver
impl Sync for UtcResolver
impl Unpin for UtcResolver
impl UnsafeUnpin for UtcResolver
impl UnwindSafe for UtcResolver
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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