Enum icu::experimental::duration::options::FractionalDigits
source · pub enum FractionalDigits {
ShowAll,
Fixed(u8),
}
Expand description
Options for configuring the number of fractional digits to display.
Variants§
ShowAll
Show as many fractional digits as necessary to display the whole duration, omitting trailing zeroes after the decimal point.
Fixed(u8)
Use the given number of fractional digits. This value must be in the range 0..=9. Fractional digits are truncated if necessary.
Trait Implementations§
source§impl Clone for FractionalDigits
impl Clone for FractionalDigits
source§fn clone(&self) -> FractionalDigits
fn clone(&self) -> FractionalDigits
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 FractionalDigits
impl Debug for FractionalDigits
source§impl Default for FractionalDigits
impl Default for FractionalDigits
source§fn default() -> FractionalDigits
fn default() -> FractionalDigits
Returns the “default value” for a type. Read more
source§impl PartialEq for FractionalDigits
impl PartialEq for FractionalDigits
impl Copy for FractionalDigits
impl Eq for FractionalDigits
impl StructuralPartialEq for FractionalDigits
Auto Trait Implementations§
impl Freeze for FractionalDigits
impl RefUnwindSafe for FractionalDigits
impl Send for FractionalDigits
impl Sync for FractionalDigits
impl Unpin for FractionalDigits
impl UnwindSafe for FractionalDigits
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