Type Alias BoxedLanguage

Source
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

Source§

fn clone_boxed(&self) -> BoxedLanguage

Make a dynamic copy of this language
Source§

fn too_low(&self) -> &'static str

What to emit by default if value is too high
Source§

fn too_high(&self) -> &'static str

What to emit by default if value is too low
Source§

fn ago(&self) -> &'static str

Chunk of text to put at the end by default
Source§

fn place_ago_before(&self) -> bool

For German and such
Source§

fn extra_space(&self) -> &str

For Thai and such
Source§

fn get_word(&self, tu: TimeUnit, x: u64) -> &'static str

Get word representing the given time unit, for using with x number