pub struct TomlMessageLoader;Trait Implementations§
Source§impl MessageLoader for TomlMessageLoader
impl MessageLoader for TomlMessageLoader
const EXTENSION: &'static str = "toml"
const NEST_VALUE_NAME: &'static str = "table"
type Value = Value
type NestValue = Map<String, Value>
fn value_to_nest(value: Self::Value) -> Option<Self::NestValue>
fn value_as_str(value: &Self::Value) -> Option<&str>
fn value_from_str(content: &str) -> Result<Self::Value, String>
fn iter_nested( value: Self::NestValue, ) -> impl Iterator<Item = (String, Self::Value)>
fn from_path(path: ArgPath) -> Vec<LangMessage>
fn from_file(file: PathBuf) -> Vec<LangMessage>
fn from_folder(folder: PathBuf) -> Vec<LangMessage>
fn internal( lang: &str, hierarchy: &mut Hierarchy<String>, value: Self::NestValue, ) -> Vec<Message>
Auto Trait Implementations§
impl Freeze for TomlMessageLoader
impl RefUnwindSafe for TomlMessageLoader
impl Send for TomlMessageLoader
impl Sync for TomlMessageLoader
impl Unpin for TomlMessageLoader
impl UnwindSafe for TomlMessageLoader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more