pub struct ICU4XTime(pub Time);
Expand description
An ICU4X Time object representing a time in terms of hour, minute, second, nanosecond
Tuple Fields§
§0: Time
Implementations§
source§impl ICU4XTime
impl ICU4XTime
sourcepub fn create(
hour: u8,
minute: u8,
second: u8,
nanosecond: u32,
) -> Result<Box<ICU4XTime>, ICU4XError>
pub fn create( hour: u8, minute: u8, second: u8, nanosecond: u32, ) -> Result<Box<ICU4XTime>, ICU4XError>
Creates a new ICU4XTime
given field values
sourcepub fn create_midnight() -> Result<Box<ICU4XTime>, ICU4XError>
pub fn create_midnight() -> Result<Box<ICU4XTime>, ICU4XError>
Creates a new ICU4XTime
representing midnight (00:00.000).
sourcepub fn nanosecond(&self) -> u32
pub fn nanosecond(&self) -> u32
Returns the nanosecond in this time
Auto Trait Implementations§
impl Freeze for ICU4XTime
impl RefUnwindSafe for ICU4XTime
impl Send for ICU4XTime
impl Sync for ICU4XTime
impl Unpin for ICU4XTime
impl UnwindSafe for ICU4XTime
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> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
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