glossa 0.0.6

Generates an array based on the similarity between the current locale and all available locales.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::MiniStr;

pub trait ChainProvider {
  fn provide_chain(&self) -> Option<&[MiniStr]>;
}

#[cfg(feature = "std")]
impl ChainProvider for crate::LocaleContext {
  fn provide_chain(&self) -> Option<&[MiniStr]> {
    self.get_or_try_init_chain()
  }
}