Struct okane_core::repl::pretty_decimal::PrettyDecimal
source · pub struct PrettyDecimal {
pub value: Decimal,
/* private fields */
}Expand description
Decimal with the original format information encoded.
Fields§
§value: DecimalImplementations§
source§impl PrettyDecimal
impl PrettyDecimal
sourcepub fn unformatted(value: Decimal) -> Self
pub fn unformatted(value: Decimal) -> Self
Constructs unformatted PrettyDecimal.
Trait Implementations§
source§impl Clone for PrettyDecimal
impl Clone for PrettyDecimal
source§fn clone(&self) -> PrettyDecimal
fn clone(&self) -> PrettyDecimal
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 PrettyDecimal
impl Debug for PrettyDecimal
source§impl Default for PrettyDecimal
impl Default for PrettyDecimal
source§fn default() -> PrettyDecimal
fn default() -> PrettyDecimal
Returns the “default value” for a type. Read more
source§impl Display for PrettyDecimal
impl Display for PrettyDecimal
source§impl From<PrettyDecimal> for Decimal
impl From<PrettyDecimal> for Decimal
source§fn from(value: PrettyDecimal) -> Self
fn from(value: PrettyDecimal) -> Self
Converts to this type from the input type.
source§impl FromStr for PrettyDecimal
impl FromStr for PrettyDecimal
source§impl PartialEq for PrettyDecimal
impl PartialEq for PrettyDecimal
source§fn eq(&self, other: &PrettyDecimal) -> bool
fn eq(&self, other: &PrettyDecimal) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for PrettyDecimal
impl StructuralEq for PrettyDecimal
impl StructuralPartialEq for PrettyDecimal
Auto Trait Implementations§
impl RefUnwindSafe for PrettyDecimal
impl Send for PrettyDecimal
impl Sync for PrettyDecimal
impl Unpin for PrettyDecimal
impl UnwindSafe for PrettyDecimal
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