pub type BoxedLanguage = Box<dyn Language + Send + Sync + 'static>;Expand description
Dynamic version of the Language trait
Aliased Type§
pub struct BoxedLanguage(/* private fields */);Trait Implementations§
Source§impl Language for BoxedLanguage
impl Language for BoxedLanguage
Source§fn clone_boxed(&self) -> BoxedLanguage
fn clone_boxed(&self) -> BoxedLanguage
Make a dynamic copy of this language
Source§fn get_word(&self, tu: TimeUnit, x: u64) -> &'static str
fn get_word(&self, tu: TimeUnit, x: u64) -> &'static str
Get word representing the given time unit, for using with
x numberSource§fn place_ago_before(&self) -> bool
fn place_ago_before(&self) -> bool
For German and such
Source§fn override_space_near_ago(&self) -> &str
fn override_space_near_ago(&self) -> &str
For Thai and such
Source§fn place_unit_before(&self, x: u64) -> bool
fn place_unit_before(&self, x: u64) -> bool
For basque and such