Struct icu_datetime::date::NanoSecond
source · [−]pub struct NanoSecond(_);
Expand description
A fractional second component, stored as nanoseconds.
Implementations
sourceimpl NanoSecond
impl NanoSecond
sourcepub const fn new_unchecked(input: u32) -> NanoSecond
pub const fn new_unchecked(input: u32) -> NanoSecond
Do not validate the numeric input for this component.
Trait Implementations
sourceimpl Add<u32> for NanoSecond
impl Add<u32> for NanoSecond
type Output = NanoSecond
type Output = NanoSecond
The resulting type after applying the +
operator.
sourcefn add(self, other: u32) -> NanoSecond
fn add(self, other: u32) -> NanoSecond
Performs the +
operation. Read more
sourceimpl Clone for NanoSecond
impl Clone for NanoSecond
sourcefn clone(&self) -> NanoSecond
fn clone(&self) -> NanoSecond
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NanoSecond
impl Debug for NanoSecond
sourceimpl Default for NanoSecond
impl Default for NanoSecond
sourcefn default() -> NanoSecond
fn default() -> NanoSecond
Returns the “default value” for a type. Read more
sourceimpl FromStr for NanoSecond
impl FromStr for NanoSecond
type Err = DateTimeError
type Err = DateTimeError
The associated error which can be returned from parsing.
sourcefn from_str(input: &str) -> Result<NanoSecond, <NanoSecond as FromStr>::Err>
fn from_str(input: &str) -> Result<NanoSecond, <NanoSecond as FromStr>::Err>
Parses a string s
to return a value of this type. Read more
sourceimpl Hash for NanoSecond
impl Hash for NanoSecond
sourceimpl PartialEq<NanoSecond> for NanoSecond
impl PartialEq<NanoSecond> for NanoSecond
sourcefn eq(&self, other: &NanoSecond) -> bool
fn eq(&self, other: &NanoSecond) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NanoSecond) -> bool
fn ne(&self, other: &NanoSecond) -> bool
This method tests for !=
.
sourceimpl Sub<u32> for NanoSecond
impl Sub<u32> for NanoSecond
type Output = NanoSecond
type Output = NanoSecond
The resulting type after applying the -
operator.
sourcefn sub(self, other: u32) -> NanoSecond
fn sub(self, other: u32) -> NanoSecond
Performs the -
operation. Read more
sourceimpl TryFrom<u32> for NanoSecond
impl TryFrom<u32> for NanoSecond
type Error = DateTimeError
type Error = DateTimeError
The type returned in the event of a conversion error.
sourcefn try_from(
input: u32
) -> Result<NanoSecond, <NanoSecond as TryFrom<u32>>::Error>
fn try_from(
input: u32
) -> Result<NanoSecond, <NanoSecond as TryFrom<u32>>::Error>
Performs the conversion.
sourceimpl TryFrom<usize> for NanoSecond
impl TryFrom<usize> for NanoSecond
type Error = DateTimeError
type Error = DateTimeError
The type returned in the event of a conversion error.
sourcefn try_from(
input: usize
) -> Result<NanoSecond, <NanoSecond as TryFrom<usize>>::Error>
fn try_from(
input: usize
) -> Result<NanoSecond, <NanoSecond as TryFrom<usize>>::Error>
Performs the conversion.
impl Copy for NanoSecond
impl StructuralPartialEq for NanoSecond
Auto Trait Implementations
impl RefUnwindSafe for NanoSecond
impl Send for NanoSecond
impl Sync for NanoSecond
impl Unpin for NanoSecond
impl UnwindSafe for NanoSecond
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more