Struct currency_rs::CurrencyOpts
source · pub struct CurrencyOpts { /* private fields */ }
Implementations§
source§impl CurrencyOpts
impl CurrencyOpts
source§impl CurrencyOpts
impl CurrencyOpts
pub fn set_symbol(self, symbol: impl Into<String>) -> Self
pub fn set_separator(self, separator: impl Into<String>) -> Self
pub fn set_decimal(self, decimal: impl Into<String>) -> Self
pub fn set_precision(self, precision: i64) -> Self
pub fn set_pattern(self, pattern: impl Into<String>) -> Self
pub fn set_negative_pattern(self, negative_pattern: impl Into<String>) -> 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
source§impl CurrencyOpts
impl CurrencyOpts
pub fn symbol(&self) -> String
pub fn separator(&self) -> String
pub fn decimal(&self) -> String
pub fn precision(&self) -> f64
pub fn pattern(&self) -> String
pub fn negative_pattern(&self) -> String
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§
source§impl Clone for CurrencyOpts
impl Clone for CurrencyOpts
source§fn clone(&self) -> CurrencyOpts
fn clone(&self) -> CurrencyOpts
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CurrencyOpts
impl Debug for CurrencyOpts
Auto Trait Implementations§
impl RefUnwindSafe for CurrencyOpts
impl Send for CurrencyOpts
impl Sync for CurrencyOpts
impl Unpin for CurrencyOpts
impl UnwindSafe for CurrencyOpts
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more