Trait SingularPlural

Source
pub trait SingularPlural {
    // Required methods
    fn singular(&self) -> &str;
    fn plural(&self) -> &str;
}
Expand description

Trait for defining singular and plural forms of words.

Required Methods§

Source

fn singular(&self) -> &str

Gets the singular form of the word.

Source

fn plural(&self) -> &str

Gets the plural form of the word.

Implementors§