pub enum TemporalField {
Int(i64),
Float(f64),
Str(String),
Date(i64),
}Expand description
A temporal map-constructor field value, extracted from a literal map
argument (date({year: 1984, …})) at lowering time. Variable references and
other non-constant values can’t be extracted and make construction bail to
the runtime path. (#599)
Variants§
Int(i64)
An integer field (year, hour, nanosecond, …).
Float(f64)
A numeric field that may be fractional (duration days: 1.5).
Str(String)
A string field (timezone: '+01:00' / 'Europe/Stockholm').
Date(i64)
A nested temporal anchor ({date: date('…'), …}) as i64 days. (#1011)
Auto Trait Implementations§
impl Freeze for TemporalField
impl RefUnwindSafe for TemporalField
impl Send for TemporalField
impl Sync for TemporalField
impl Unpin for TemporalField
impl UnsafeUnpin for TemporalField
impl UnwindSafe for TemporalField
Blanket Implementations§
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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