pub struct ICU4XCalendar(pub Arc<AnyCalendar>);Tuple Fields§
§0: Arc<AnyCalendar>Implementations§
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
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes