localizer 0.3.5

Simple library for localization.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::Error;
pub trait FormatterTrait: Sync + Send {
    //type FormArgsType;
    //fn get_formatted_string(&self, string: &str, args: /*&dyn*/impl FormatterArgsTrait) -> Result<String, Error> where Self: Sized;
    //fn get_formatted_string(&'a self, string: &str, args: &dyn FormatterArgsTrait) -> Result<String, Error> where Self: Sized;
    //fn get_formatted_string(&self, string: &str, args: Self::FormArgsType) -> Result<String, Error>;// where Self: Sized;
    fn get_formatted_string(
        &self,
        string: &str,
        args: &dyn FormatterArgsTrait,
    ) -> Result<String, Error>; // where Self: Sized;
}

pub trait FormatterArgsTrait /* : Sync + Send*//*<'a, FormArg>*/
{
    fn get_formatted_val(&self, string: &str) -> Result<String, Error>;
}