Struct currency_rs::CurrencyOpts
source · [−]pub struct CurrencyOpts<'a> { /* private fields */ }
Implementations
sourceimpl CurrencyOpts<'_>
impl CurrencyOpts<'_>
sourceimpl<'a> CurrencyOpts<'a>
impl<'a> CurrencyOpts<'a>
pub fn set_symbol(self, symbol: &'a str) -> Self
pub fn set_separator(self, separator: &'a str) -> Self
pub fn set_decimal(self, decimal: &'a str) -> Self
pub fn set_precision(self, precision: i64) -> Self
pub fn set_pattern(self, pattern: &'a str) -> Self
pub fn set_negative_pattern(self, negative_pattern: &'a str) -> Self
pub fn set_from_cents(self, from_cents: bool) -> Self
pub fn set_increment(self, increment: f64) -> Self
pub fn set_unset_increment(self) -> Self
pub fn set_use_vedic(self, use_vedic: bool) -> Self
pub fn set_error_on_invalid(self, error_on_invalid: bool) -> Self
sourceimpl CurrencyOpts<'_>
impl CurrencyOpts<'_>
pub fn symbol(&self) -> &str
pub fn separator(&self) -> &str
pub fn decimal(&self) -> &str
pub fn precision(&self) -> f64
pub fn pattern(&self) -> &str
pub fn negative_pattern(&self) -> &str
pub fn from_cents(&self) -> bool
pub fn increment(&self) -> f64
pub fn use_vedic(&self) -> bool
pub fn error_on_invalid(&self) -> bool
Trait Implementations
sourceimpl<'a> Clone for CurrencyOpts<'a>
impl<'a> Clone for CurrencyOpts<'a>
sourcefn clone(&self) -> CurrencyOpts<'a>
fn clone(&self) -> CurrencyOpts<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for CurrencyOpts<'a>
impl<'a> Debug for CurrencyOpts<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CurrencyOpts<'a>
impl<'a> Send for CurrencyOpts<'a>
impl<'a> Sync for CurrencyOpts<'a>
impl<'a> Unpin for CurrencyOpts<'a>
impl<'a> UnwindSafe for CurrencyOpts<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more