Struct icu_calendar::types::IsoSecond
source · pub struct IsoSecond(/* private fields */);
Expand description
An ISO-8601 second component, for use with ISO calendars.
Must be within inclusive bounds [0, 61]
. 60
accommodates for leap seconds.
The value could also be equal to 60 or 61, to indicate the end of a leap second,
with the writing 23:59:61.000000000Z
or 23:59:60.000000000Z
. These examples,
if used with this goal, would correspond to the same time as the next day, at
time 00:00:00.000000000Z
. This is an extension to ISO 8601.
Implementations§
source§impl IsoSecond
impl IsoSecond
sourcepub fn try_add(self, other: u8) -> Option<Self>
pub fn try_add(self, other: u8) -> Option<Self>
Attempts to add two values.
Returns Some
if the sum is within bounds.
Returns None
if the sum is out of bounds.
Trait Implementations§
source§impl Ord for IsoSecond
impl Ord for IsoSecond
source§impl PartialOrd for IsoSecond
impl PartialOrd for IsoSecond
impl Copy for IsoSecond
impl Eq for IsoSecond
impl StructuralPartialEq for IsoSecond
Auto Trait Implementations§
impl Freeze for IsoSecond
impl RefUnwindSafe for IsoSecond
impl Send for IsoSecond
impl Sync for IsoSecond
impl Unpin for IsoSecond
impl UnwindSafe for IsoSecond
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
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more