Struct TransitionCivilTime

pub struct TransitionCivilTime { pub second: i32 }

Represents the civil time at which a time zone transition occurs.

Note that this does not use civil::TimeSecond because this may be longer than a single civil day (i.e., bigger than 86400). It can also be negative.

Fields

second: i32

The time in seconds. This may be negative.

Valid range is [-604_799, 604_799].

Implementations

impl TransitionCivilTime

const DEFAULT: TransitionCivilTime = _;

The "default" time for a time zone transition to occur.

This is used, as specified by POSIX, whenever a specific time of day is omitted from a POSIX time zone transition rule string.

Trait Implementations

impl Clone for TransitionCivilTime

fn clone(&self) -> TransitionCivilTime

impl Copy for TransitionCivilTime

impl Debug for TransitionCivilTime

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for TransitionCivilTime

impl PartialEq for TransitionCivilTime

fn eq(&self, other: &TransitionCivilTime) -> bool

impl StructuralPartialEq for TransitionCivilTime

Auto Trait Implementations

impl Freeze for TransitionCivilTime

impl RefUnwindSafe for TransitionCivilTime

impl Send for TransitionCivilTime

impl Sync for TransitionCivilTime

impl Unpin for TransitionCivilTime

impl UnsafeUnpin for TransitionCivilTime

impl UnwindSafe for TransitionCivilTime

Blanket Implementations

impl<T> Any for TransitionCivilTime where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for TransitionCivilTime where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for TransitionCivilTime where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for TransitionCivilTime where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for TransitionCivilTime

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for TransitionCivilTime where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for TransitionCivilTime where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for TransitionCivilTime where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for TransitionCivilTime where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>