Struct ::exo::Translations

Overview

Store for multiple settings

Methods

fn new() -> Translations

Creates a new Translation object.

fn remove(self, key: String) -> Option

Removes a language from the translations and returns the language if the removal was successfull.

fn insert(self, key: String, lang: Language) -> Tuple

Inserts a new language towards the translations.

fn get(self, key: String) -> Option

Get a language from the translations.

Protocols

protocol partial_eq
if value == b { }

Allows for partial equality operations to work.

protocol string_debug
println("{:?}", value)

Allows the value to be debug printed.

protocol string_display
println("{}", value)

Allows the value to be display printed.