Struct glib::TimeZone [−][src]
pub struct TimeZone(_);
Methods
impl TimeZone
[src]
impl TimeZone
pub fn new<'a, P: Into<Option<&'a str>>>(identifier: P) -> TimeZone
[src]
pub fn new<'a, P: Into<Option<&'a str>>>(identifier: P) -> TimeZone
pub fn new_local() -> TimeZone
[src]
pub fn new_local() -> TimeZone
pub fn new_utc() -> TimeZone
[src]
pub fn new_utc() -> TimeZone
pub fn find_interval(&self, type_: TimeType, time_: i64) -> i32
[src]
pub fn find_interval(&self, type_: TimeType, time_: i64) -> i32
pub fn get_abbreviation(&self, interval: i32) -> Option<String>
[src]
pub fn get_abbreviation(&self, interval: i32) -> Option<String>
pub fn get_offset(&self, interval: i32) -> i32
[src]
pub fn get_offset(&self, interval: i32) -> i32
pub fn is_dst(&self, interval: i32) -> bool
[src]
pub fn is_dst(&self, interval: i32) -> bool
Trait Implementations
impl Debug for TimeZone
[src]
impl Debug for TimeZone
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for TimeZone
[src]
impl PartialEq for TimeZone
fn eq(&self, other: &TimeZone) -> bool
[src]
fn eq(&self, other: &TimeZone) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TimeZone) -> bool
[src]
fn ne(&self, other: &TimeZone) -> bool
This method tests for !=
.
impl Eq for TimeZone
[src]
impl Eq for TimeZone
impl PartialOrd for TimeZone
[src]
impl PartialOrd for TimeZone
fn partial_cmp(&self, other: &TimeZone) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &TimeZone) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &TimeZone) -> bool
[src]
fn lt(&self, other: &TimeZone) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &TimeZone) -> bool
[src]
fn le(&self, other: &TimeZone) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &TimeZone) -> bool
[src]
fn gt(&self, other: &TimeZone) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &TimeZone) -> bool
[src]
fn ge(&self, other: &TimeZone) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for TimeZone
[src]
impl Ord for TimeZone
fn cmp(&self, other: &TimeZone) -> Ordering
[src]
fn cmp(&self, other: &TimeZone) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for TimeZone
[src]
impl Hash for TimeZone
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for TimeZone
[src]
impl Clone for TimeZone
fn clone(&self) -> TimeZone
[src]
fn clone(&self) -> TimeZone
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl StaticType for TimeZone
[src]
impl StaticType for TimeZone
fn static_type() -> Type
[src]
fn static_type() -> Type
Returns the type identifier of Self
.
impl Send for TimeZone
[src]
impl Send for TimeZone
impl Sync for TimeZone
[src]
impl Sync for TimeZone