pub struct Setting { /* private fields */ }Expand description
A valid time zone setting: an optional zone name and a POSIX TZ string.
Implementations§
Source§impl Setting
impl Setting
Sourcepub fn new(name: Option<&str>, time_zone: &str) -> Result<Self, SettingError>
pub fn new(name: Option<&str>, time_zone: &str) -> Result<Self, SettingError>
Check and build a setting. name is the IANA zone name that
time_zone was resolved from, or None for a custom TZ string. The name
is not looked up: Core has no zone table.
Sourcepub fn time_zone_string(&self) -> &str
pub fn time_zone_string(&self) -> &str
The POSIX TZ string.
Trait Implementations§
impl Eq for Setting
impl StructuralPartialEq for Setting
Auto Trait Implementations§
impl Freeze for Setting
impl RefUnwindSafe for Setting
impl Send for Setting
impl Sync for Setting
impl Unpin for Setting
impl UnsafeUnpin for Setting
impl UnwindSafe for Setting
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