pub struct ZonedTimeValue {
pub time: LocalTimeValue,
pub offset: UtcOffsetValue,
}Fields§
§time: LocalTimeValue§offset: UtcOffsetValueImplementations§
Source§impl ZonedTimeValue
impl ZonedTimeValue
pub fn new(time: LocalTimeValue, offset: UtcOffsetValue) -> ZonedTimeValue
pub fn utc_nanos_since_midnight(&self) -> i64
pub fn with_offset_same_instant( &self, offset: UtcOffsetValue, ) -> Result<ZonedTimeValue, EncodeError>
pub fn checked_add_duration( &self, duration: &DurationValue, ) -> Result<ZonedTimeValue, EncodeError>
pub fn checked_sub_duration( &self, duration: &DurationValue, ) -> Result<ZonedTimeValue, EncodeError>
Trait Implementations§
Source§impl Clone for ZonedTimeValue
impl Clone for ZonedTimeValue
Source§fn clone(&self) -> ZonedTimeValue
fn clone(&self) -> ZonedTimeValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ZonedTimeValue
impl Debug for ZonedTimeValue
Source§impl Display for ZonedTimeValue
impl Display for ZonedTimeValue
impl Eq for ZonedTimeValue
Source§impl FromStr for ZonedTimeValue
impl FromStr for ZonedTimeValue
Source§type Err = DecodeError
type Err = DecodeError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<ZonedTimeValue, <ZonedTimeValue as FromStr>::Err>
fn from_str(s: &str) -> Result<ZonedTimeValue, <ZonedTimeValue as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Ord for ZonedTimeValue
impl Ord for ZonedTimeValue
Source§fn cmp(&self, other: &ZonedTimeValue) -> Ordering
fn cmp(&self, other: &ZonedTimeValue) -> Ordering
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 PartialEq for ZonedTimeValue
impl PartialEq for ZonedTimeValue
Source§fn eq(&self, other: &ZonedTimeValue) -> bool
fn eq(&self, other: &ZonedTimeValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ZonedTimeValue
impl PartialOrd for ZonedTimeValue
impl StructuralPartialEq for ZonedTimeValue
Auto Trait Implementations§
impl Freeze for ZonedTimeValue
impl RefUnwindSafe for ZonedTimeValue
impl Send for ZonedTimeValue
impl Sync for ZonedTimeValue
impl Unpin for ZonedTimeValue
impl UnsafeUnpin for ZonedTimeValue
impl UnwindSafe for ZonedTimeValue
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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