pub struct ProviderFormatters { /* private fields */ }Expand description
ICU formatters backed by caller-supplied data.
Implementations§
Source§impl ProviderFormatters
impl ProviderFormatters
pub fn new(provider: impl BufferProvider + Send + Sync + 'static) -> Self
Trait Implementations§
Source§impl Clone for ProviderFormatters
impl Clone for ProviderFormatters
Source§impl Formatters for ProviderFormatters
impl Formatters for ProviderFormatters
fn format_number( &self, locale: &Locale, value: NumericValue, options: &ExtendedNumberFormatOptions, ) -> Result<String>
fn format_datetime( &self, locale: &Locale, value: DateTimeValue, kind: DateTimeKind, options: &DateTimeFormatOptions, ) -> Result<String>
fn plural_category( &self, locale: &Locale, value: NumericValue, plural_type: PluralType, ) -> Result<PluralCategory>
Auto Trait Implementations§
impl !RefUnwindSafe for ProviderFormatters
impl !UnwindSafe for ProviderFormatters
impl Freeze for ProviderFormatters
impl Send for ProviderFormatters
impl Sync for ProviderFormatters
impl Unpin for ProviderFormatters
impl UnsafeUnpin for ProviderFormatters
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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