Struct icu_calendar::japanese::Japanese
source · [−]pub struct Japanese { /* private fields */ }
Expand description
The Japanese Calendar
Implementations
pub fn try_new<D: DataProvider<JapaneseErasV1Marker> + ?Sized>(
data_provider: &D
) -> Result<Self, DataError>
pub fn try_new<D: DataProvider<JapaneseErasV1Marker> + ?Sized>(
data_provider: &D
) -> Result<Self, DataError>
Creates a new Japanese
from locale data and an options bag.
Trait Implementations
The calendar-specific month represented by date
The calendar-specific day-of-month represented by date
Information of the day of the year
type DateInner = JapaneseDateInner
type DateInner = JapaneseDateInner
The internal type used to represent dates
Construct the date from an ISO date
Obtain an ISO date from this date
Count the number of months in a given year, specified by providing a date from that year Read more
Count the number of days in a given year, specified by providing a date from that year Read more
Count the number of days in a given month, specified by providing a date from that year/month Read more
Add offset
to date
fn until(
&self,
date1: &Self::DateInner,
date2: &Self::DateInner,
largest_unit: DateDurationUnit,
smallest_unit: DateDurationUnit
) -> DateDuration<Self>
fn until(
&self,
date1: &Self::DateInner,
date2: &Self::DateInner,
largest_unit: DateDurationUnit,
smallest_unit: DateDurationUnit
) -> DateDuration<Self>
Calculate date2 - date
as a duration
Obtain a name for the calendar for debug printing
Calculate the day of the week and return it
Auto Trait Implementations
impl RefUnwindSafe for Japanese
impl UnwindSafe for Japanese
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn filterable(
self,
filter_name: &'static str
) -> RequestFilterDataProvider<T, fn(&DataRequest) -> bool>
pub 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