[][src]Struct localizer::structs::localizer::Localizer

pub struct Localizer {
    pub res: Option<Box<dyn Res>>,
    pub current_lang: Option<String>,
    pub ser_form: serialize_form,
}

Fields

res: Option<Box<dyn Res>>current_lang: Option<String>ser_form: serialize_form

Implementations

impl Localizer[src]

pub fn new(
    res: impl Res + 'static,
    current_lang: Option<String>,
    ser_form: serialize_form
) -> Self
[src]

pub fn create() -> Self[src]

pub fn res(self, res: impl Res + 'static) -> Self[src]

pub fn string(self, string: Option<String>) -> Self[src]

pub fn current_lang(self, lang: Option<String>) -> Self[src]

pub fn ser_form(self, form: Option<serialize_form>) -> Self[src]

pub fn user(self, f: &dyn Fn(&mut Self)) -> Self[src]

pub fn set_res(&mut self, res: Option<impl Res + 'static>) -> &mut Self[src]

pub fn set_string(&mut self, string: Option<String>) -> &mut Self[src]

pub fn set_current_lang(&mut self, lang: Option<String>) -> &mut Self[src]

pub fn set_ser_form(&mut self, form: Option<serialize_form>) -> &mut Self[src]

pub fn into_string(&mut self) -> Option<()>[src]

pub fn get(&self, key: &str) -> Option<String>[src]

pub fn get1(&self, key: &str) -> Vec<String>[src]

Trait Implementations

impl Default for Localizer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.