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 IntoBoundedStatic for PrettyDecimal
impl IntoBoundedStatic for PrettyDecimal
§type Static = PrettyDecimal
type Static = PrettyDecimal
The target type is bounded by the
'static lifetime.source§fn into_static(self) -> <Self as IntoBoundedStatic>::Static
fn into_static(self) -> <Self as IntoBoundedStatic>::Static
Convert an owned
T into an owned T such that T: 'static.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 ==.source§impl ToBoundedStatic for PrettyDecimal
impl ToBoundedStatic for PrettyDecimal
§type Static = PrettyDecimal
type Static = PrettyDecimal
The target type is bounded by the
'static lifetime.source§fn to_static(&self) -> <Self as ToBoundedStatic>::Static
fn to_static(&self) -> <Self as ToBoundedStatic>::Static
Convert an
&T to an owned T such that T: 'static.impl Eq for PrettyDecimal
impl StructuralPartialEq for PrettyDecimal
Auto Trait Implementations§
impl Freeze for PrettyDecimal
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)