Struct icu_capi::calendar::ffi::ICU4XCalendar
source · pub struct ICU4XCalendar(pub Arc<AnyCalendar>);
Tuple Fields§
§0: Arc<AnyCalendar>
Implementations§
source§impl<'transparent_convert_outer> ICU4XCalendar
impl<'transparent_convert_outer> ICU4XCalendar
pub(crate) fn transparent_convert( from: &'transparent_convert_outer Arc<AnyCalendar>, ) -> &'transparent_convert_outer Self
source§impl ICU4XCalendar
impl ICU4XCalendar
sourcepub fn create_for_locale(
provider: &ICU4XDataProvider,
locale: &ICU4XLocale,
) -> Result<Box<ICU4XCalendar>, ICU4XError>
pub fn create_for_locale( provider: &ICU4XDataProvider, locale: &ICU4XLocale, ) -> Result<Box<ICU4XCalendar>, ICU4XError>
Creates a new ICU4XCalendar
from the specified date and time.
sourcepub fn create_for_kind(
provider: &ICU4XDataProvider,
kind: ICU4XAnyCalendarKind,
) -> Result<Box<ICU4XCalendar>, ICU4XError>
pub fn create_for_kind( provider: &ICU4XDataProvider, kind: ICU4XAnyCalendarKind, ) -> Result<Box<ICU4XCalendar>, ICU4XError>
Creates a new ICU4XCalendar
from the specified date and time.
sourcepub fn kind(&self) -> ICU4XAnyCalendarKind
pub fn kind(&self) -> ICU4XAnyCalendarKind
Returns the kind of this calendar
Auto Trait Implementations§
impl Freeze for ICU4XCalendar
impl RefUnwindSafe for ICU4XCalendar
impl !Send for ICU4XCalendar
impl !Sync for ICU4XCalendar
impl Unpin for ICU4XCalendar
impl UnwindSafe for ICU4XCalendar
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