pub struct NoCalendarFormatter(pub NoCalendarFormatter<T>);
Expand description
An ICU4X NoCalendarFormatter object capable of formatting an Time
type (and others) as a string
Tuple Fields§
§0: NoCalendarFormatter<T>
Implementations§
Source§impl NoCalendarFormatter
impl NoCalendarFormatter
Sourcepub fn create_with_length(
locale: &Locale,
length: DateTimeLength,
) -> Result<Box<NoCalendarFormatter>, DateTimeFormatterLoadError>
pub fn create_with_length( locale: &Locale, length: DateTimeLength, ) -> Result<Box<NoCalendarFormatter>, DateTimeFormatterLoadError>
Creates a new NoCalendarFormatter
using compiled data.
Sourcepub fn create_with_length_and_provider(
provider: &DataProvider,
locale: &Locale,
length: DateTimeLength,
) -> Result<Box<NoCalendarFormatter>, DateTimeFormatterLoadError>
pub fn create_with_length_and_provider( provider: &DataProvider, locale: &Locale, length: DateTimeLength, ) -> Result<Box<NoCalendarFormatter>, DateTimeFormatterLoadError>
Creates a new NoCalendarFormatter
using a particular data source.
Auto Trait Implementations§
impl Freeze for NoCalendarFormatter
impl RefUnwindSafe for NoCalendarFormatter
impl Send for NoCalendarFormatter
impl Sync for NoCalendarFormatter
impl Unpin for NoCalendarFormatter
impl UnwindSafe for NoCalendarFormatter
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> 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