Struct amfnengine::core::elem_locale::ElemLocaleFormat[]

pub struct ElemLocaleFormat { /* fields omitted */ }

The locale format definition.

Implementations

impl ElemLocaleFormat

The locale format implementation.

pub fn new(
    date_regex_param: &str,
    date_replace_param: &str,
    integer_regex_param: &str,
    integer_replace_param: &str,
    decimal_regex_param: &str,
    decimal_replace_param: &str,
    currency_regex_param: &str,
    currency_replace_param: &str
) -> ElemLocaleFormat

Create a new locale format element.

Arguments

  • date_regex_param - Date regular expression.
  • date_replace_param - Date replace expression.
  • integer_regex_param - Integer regular expression.
  • integer_replace_param - Integer replace expression.
  • decimal_regex_param - Decimal regular expression.
  • decimal_replace_param - Decimal replace expression.
  • currency_regex_param - Currency regular expression.
  • currency_replace_param - Currency replace expression.

Return

  • See description.

pub fn copy(&self) -> ElemLocaleFormat

Copy and return a new locale format element.

Return

  • See description.

pub fn date_regex(&self) -> &str

Get the date regex.

Return

  • See description.

pub fn date_replace(&self) -> &str

Get the date replace.

Return

  • See description.

pub fn integer_regex(&self) -> &str

Get the integer regex.

Return

  • See description.

pub fn integer_replace(&self) -> &str

Get the integer replace.

Return

  • See description.

pub fn decimal_regex(&self) -> &str

Get the decimal regex.

Return

  • See description.

pub fn decimal_replace(&self) -> &str

Get the decimal replace.

Return

  • See description.

pub fn currency_regex(&self) -> &str

Get the currency regex.

Return

  • See description.

pub fn currency_replace(&self) -> &str

Get the currency replace.

Return

  • See description.

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.