Enum temporal_rs::options::TemporalRoundingMode
source · pub enum TemporalRoundingMode {
Ceil,
Floor,
Expand,
Trunc,
HalfCeil,
HalfFloor,
HalfExpand,
HalfTrunc,
HalfEven,
}
Expand description
Declares the specified RoundingMode
for the operation.
Variants§
Ceil
Ceil RoundingMode
Floor
Floor RoundingMode
Expand
Expand RoundingMode
Trunc
Truncate RoundingMode
HalfCeil
HalfCeil RoundingMode
HalfFloor
HalfFloor RoundingMode
HalfExpand
HalfExpand RoundingMode - Default
HalfTrunc
HalfTruncate RoundingMode
HalfEven
HalfEven RoundingMode
Implementations§
source§impl TemporalRoundingMode
impl TemporalRoundingMode
sourcepub const fn get_unsigned_round_mode(
self,
is_negative: bool
) -> TemporalUnsignedRoundingMode
pub const fn get_unsigned_round_mode( self, is_negative: bool ) -> TemporalUnsignedRoundingMode
Returns the UnsignedRoundingMode
Trait Implementations§
source§impl Clone for TemporalRoundingMode
impl Clone for TemporalRoundingMode
source§fn clone(&self) -> TemporalRoundingMode
fn clone(&self) -> TemporalRoundingMode
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 TemporalRoundingMode
impl Debug for TemporalRoundingMode
source§impl Default for TemporalRoundingMode
impl Default for TemporalRoundingMode
source§fn default() -> TemporalRoundingMode
fn default() -> TemporalRoundingMode
Returns the “default value” for a type. Read more
source§impl Display for TemporalRoundingMode
impl Display for TemporalRoundingMode
source§impl FromStr for TemporalRoundingMode
impl FromStr for TemporalRoundingMode
impl Copy for TemporalRoundingMode
Auto Trait Implementations§
impl RefUnwindSafe for TemporalRoundingMode
impl Send for TemporalRoundingMode
impl Sync for TemporalRoundingMode
impl Unpin for TemporalRoundingMode
impl UnwindSafe for TemporalRoundingMode
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