pub(crate) struct LocalTimeType {
pub(super) ut_offset: i32,
is_dst: bool,
name: Option<TimeZoneName>,
}
Expand description
Local time type associated to a time zone
Fields§
§ut_offset: i32
Offset from UTC in seconds
is_dst: bool
Daylight Saving Time indicator
name: Option<TimeZoneName>
Time zone name
Implementations§
source§impl LocalTimeType
impl LocalTimeType
sourcepub(super) fn new(
ut_offset: i32,
is_dst: bool,
name: Option<&[u8]>,
) -> Result<Self, Error>
pub(super) fn new( ut_offset: i32, is_dst: bool, name: Option<&[u8]>, ) -> Result<Self, Error>
Construct a local time type
sourcepub(super) const fn with_offset(ut_offset: i32) -> Result<Self, Error>
pub(super) const fn with_offset(ut_offset: i32) -> Result<Self, Error>
Construct a local time type with the specified UTC offset in seconds
pub(super) const UTC: LocalTimeType = _
Trait Implementations§
source§impl Clone for LocalTimeType
impl Clone for LocalTimeType
source§fn clone(&self) -> LocalTimeType
fn clone(&self) -> LocalTimeType
Returns a copy of the value. Read more
1.0.0 · 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 LocalTimeType
impl Debug for LocalTimeType
source§impl From<LocalTimeType> for TransitionRule
impl From<LocalTimeType> for TransitionRule
source§fn from(inner: LocalTimeType) -> Self
fn from(inner: LocalTimeType) -> Self
Converts to this type from the input type.
source§impl PartialEq for LocalTimeType
impl PartialEq for LocalTimeType
impl Copy for LocalTimeType
impl Eq for LocalTimeType
impl StructuralPartialEq for LocalTimeType
Auto Trait Implementations§
impl Freeze for LocalTimeType
impl RefUnwindSafe for LocalTimeType
impl Send for LocalTimeType
impl Sync for LocalTimeType
impl Unpin for LocalTimeType
impl UnwindSafe for LocalTimeType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)