pub(crate) trait ChineseBasedWithDataLoading: Calendar {
    type CB: ChineseBased;

    // Required method
    fn get_precomputed_data(&self) -> ChineseBasedPrecomputedData<'_, Self::CB>;
}
Expand description

The trait ChineseBased is used by Chinese-based calendars to perform computations shared by such calendar.

For an example of how to use this trait, see impl ChineseBasedWithDataLoading for Chinese in [Chinese].

Required Associated Types§

Required Methods§

source

fn get_precomputed_data(&self) -> ChineseBasedPrecomputedData<'_, Self::CB>

Get the compiled const data for a ChineseBased calendar; can return None if the given year does not correspond to any compiled data.

Object Safety§

This trait is not object safe.

Implementors§