Trait intl_memoizer::Memoizable
source · pub trait Memoizable {
type Args: 'static + Eq + Hash + Clone;
type Error;
// Required method
fn construct(
lang: LanguageIdentifier,
args: Self::Args
) -> Result<Self, Self::Error>
where Self: Sized;
}
Expand description
The trait that needs to be implemented for each intl formatter that needs to be memoized.
Required Associated Types§
Required Methods§
sourcefn construct(
lang: LanguageIdentifier,
args: Self::Args
) -> Result<Self, Self::Error>where
Self: Sized,
fn construct(
lang: LanguageIdentifier,
args: Self::Args
) -> Result<Self, Self::Error>where
Self: Sized,
Construct a formatter. This maps the Self::Args
type to the actual constructor
for an intl formatter.