[−][src]Struct localizer::structs::localizer::Localizer
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]
res: impl Res + 'static,
current_lang: Option<String>,
ser_form: serialize_form
) -> Self
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
Auto Trait Implementations
impl !RefUnwindSafe for Localizer
impl Send for Localizer
impl Sync for Localizer
impl Unpin for Localizer
impl !UnwindSafe for Localizer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,