Enum icu_datetime::fields::DecimalSecond
source · #[repr(u8)]pub enum DecimalSecond {
SecondF1 = 1,
SecondF2 = 2,
SecondF3 = 3,
SecondF4 = 4,
SecondF5 = 5,
SecondF6 = 6,
SecondF7 = 7,
SecondF8 = 8,
SecondF9 = 9,
}
Expand description
A second field with fractional digits.
Variants§
SecondF1 = 1
A second with 1 fractional digit: “1.0”
SecondF2 = 2
A second with 2 fractional digits: “1.00”
SecondF3 = 3
A second with 3 fractional digits: “1.000”
SecondF4 = 4
A second with 4 fractional digits: “1.0000”
SecondF5 = 5
A second with 5 fractional digits: “1.00000”
SecondF6 = 6
A second with 6 fractional digits: “1.000000”
SecondF7 = 7
A second with 7 fractional digits: “1.0000000”
SecondF8 = 8
A second with 8 fractional digits: “1.00000000”
SecondF9 = 9
A second with 9 fractional digits: “1.000000000”
Trait Implementations§
source§impl AsULE for DecimalSecond
impl AsULE for DecimalSecond
source§type ULE = DecimalSecondULE
type ULE = DecimalSecondULE
The ULE type corresponding to
Self
. Read moresource§fn to_unaligned(self) -> Self::ULE
fn to_unaligned(self) -> Self::ULE
source§fn from_unaligned(other: Self::ULE) -> Self
fn from_unaligned(other: Self::ULE) -> Self
source§impl Bake for DecimalSecond
impl Bake for DecimalSecond
source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
source§impl BakeSize for DecimalSecond
impl BakeSize for DecimalSecond
source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
source§impl Clone for DecimalSecond
impl Clone for DecimalSecond
source§fn clone(&self) -> DecimalSecond
fn clone(&self) -> DecimalSecond
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 DecimalSecond
impl Debug for DecimalSecond
source§impl<'de> Deserialize<'de> for DecimalSecond
impl<'de> Deserialize<'de> for DecimalSecond
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<DecimalSecond> for FieldSymbol
impl From<DecimalSecond> for FieldSymbol
source§fn from(input: DecimalSecond) -> Self
fn from(input: DecimalSecond) -> Self
Converts to this type from the input type.
source§impl Ord for DecimalSecond
impl Ord for DecimalSecond
source§fn cmp(&self, other: &DecimalSecond) -> Ordering
fn cmp(&self, other: &DecimalSecond) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DecimalSecond
impl PartialEq for DecimalSecond
source§impl PartialOrd for DecimalSecond
impl PartialOrd for DecimalSecond
source§impl Serialize for DecimalSecond
impl Serialize for DecimalSecond
source§impl<'a> Yokeable<'a> for DecimalSecondwhere
Self: Sized,
impl<'a> Yokeable<'a> for DecimalSecondwhere
Self: Sized,
source§type Output = DecimalSecond
type Output = DecimalSecond
This type MUST be
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
source§unsafe fn make(this: Self::Output) -> Self
unsafe fn make(this: Self::Output) -> Self
This method can be used to cast away
Self<'a>
’s lifetime. Read moresource§fn transform_mut<F>(&'a mut self, f: F)where
F: 'static + for<'b> FnOnce(&'b mut Self::Output),
fn transform_mut<F>(&'a mut self, f: F)where
F: 'static + for<'b> FnOnce(&'b mut Self::Output),
This method must cast
self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read moresource§impl<'zf> ZeroFrom<'zf, DecimalSecond> for DecimalSecond
impl<'zf> ZeroFrom<'zf, DecimalSecond> for DecimalSecond
source§impl<'a> ZeroMapKV<'a> for DecimalSecond
impl<'a> ZeroMapKV<'a> for DecimalSecond
source§type Container = ZeroVec<'a, DecimalSecond>
type Container = ZeroVec<'a, DecimalSecond>
The container that can be used with this type: [
ZeroVec
] or [VarZeroVec
].type Slice = ZeroSlice<DecimalSecond>
source§type GetType = DecimalSecondULE
type GetType = DecimalSecondULE
The type produced by
Container::get()
Read moresource§type OwnedType = DecimalSecond
type OwnedType = DecimalSecond
The type produced by
Container::replace()
and Container::remove()
,
also used during deserialization. If Self
is human readable serialized,
deserializing to Self::OwnedType
should produce the same value once
passed through Self::owned_as_self()
Read moreimpl Copy for DecimalSecond
impl Eq for DecimalSecond
impl StructuralPartialEq for DecimalSecond
Auto Trait Implementations§
impl Freeze for DecimalSecond
impl RefUnwindSafe for DecimalSecond
impl Send for DecimalSecond
impl Sync for DecimalSecond
impl Unpin for DecimalSecond
impl UnwindSafe for DecimalSecond
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