Skip to main content

I18n

Struct I18n 

Source
pub struct I18n {
    pub lang: Lang,
}

Fields§

§lang: Lang

Implementations§

Source§

impl I18n

Source

pub fn new(lang: Option<Lang>) -> Self

Source

pub fn save_success(&self, name: &str, path: &str) -> String

Source

pub fn save_err(&self, name: &str, path: &str, err: &str) -> String

Source

pub fn dir_create_err(&self, dir: &str, err: &str) -> String

Source

pub fn skip_binary(&self) -> &'static str

Source

pub fn read_err(&self) -> &'static str

Source

pub fn footer_tool(&self) -> &str

Source

pub fn footer_input(&self) -> &str

Source

pub fn footer_cmd(&self) -> &str

Source

pub fn footer_tag(&self) -> &str

Source

pub fn footer_help(&self) -> &str

Source

pub fn cli_base_abs(&self, path: &str) -> String

Source

pub fn cli_target_abs(&self, path: &str) -> String

Source

pub fn cli_target_rel(&self, path: &str) -> String

Source

pub fn cli_case_sensitive(&self, val: bool) -> String

Source

pub fn cli_patterns_raw(&self, pat: &str) -> String

Source

pub fn cli_patterns_tok(&self, pat: &str) -> String

Source

pub fn cli_summary_matched(&self, count: usize, total: usize) -> String

Source

pub fn cli_summary_rejected(&self, count: usize, total: usize) -> String

Auto Trait Implementations§

§

impl Freeze for I18n

§

impl RefUnwindSafe for I18n

§

impl Send for I18n

§

impl Sync for I18n

§

impl Unpin for I18n

§

impl UnsafeUnpin for I18n

§

impl UnwindSafe for I18n

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.