pub struct LocalTimeType { /* private fields */ }
Expand description
Local time type associated to a time zone
Implementations§
Source§impl LocalTimeType
impl LocalTimeType
Sourcepub const fn new(
ut_offset: i32,
is_dst: bool,
time_zone_designation: Option<&[u8]>,
) -> Result<Self, LocalTimeTypeError>
pub const fn new( ut_offset: i32, is_dst: bool, time_zone_designation: Option<&[u8]>, ) -> Result<Self, LocalTimeTypeError>
Construct a local time type
Sourcepub const fn with_ut_offset(ut_offset: i32) -> Result<Self, LocalTimeTypeError>
pub const fn with_ut_offset(ut_offset: i32) -> Result<Self, LocalTimeTypeError>
Construct a local time type with the specified UTC offset in seconds
Sourcepub const fn time_zone_designation(&self) -> &str
pub const fn time_zone_designation(&self) -> &str
Returns time zone designation
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 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