pub struct YamlMessageLoader;Trait Implementations§
Source§impl MessageLoader for YamlMessageLoader
impl MessageLoader for YamlMessageLoader
const EXTENSION: &'static str = "yaml"
const NEST_VALUE_NAME: &'static str = "hash"
type Value = Yaml
type NestValue = LinkedHashMap<Yaml, Yaml>
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 YamlMessageLoader
impl RefUnwindSafe for YamlMessageLoader
impl Send for YamlMessageLoader
impl Sync for YamlMessageLoader
impl Unpin for YamlMessageLoader
impl UnwindSafe for YamlMessageLoader
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