pub struct SafeDecimal(/* private fields */);Implementations§
Trait Implementations§
Source§impl Add for SafeDecimal
impl Add for SafeDecimal
Source§impl Clone for SafeDecimal
impl Clone for SafeDecimal
Source§fn clone(&self) -> SafeDecimal
fn clone(&self) -> SafeDecimal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SafeDecimal
Source§impl Debug for SafeDecimal
impl Debug for SafeDecimal
Source§impl<'de> Deserialize<'de> for SafeDecimal
impl<'de> Deserialize<'de> for SafeDecimal
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SafeDecimal
impl Display for SafeDecimal
Source§impl Div for SafeDecimal
impl Div for SafeDecimal
impl Eq for SafeDecimal
Source§impl FromStr for SafeDecimal
impl FromStr for SafeDecimal
Source§impl JsonSchema for SafeDecimal
impl JsonSchema for SafeDecimal
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Mul for SafeDecimal
impl Mul for SafeDecimal
Source§impl Ord for SafeDecimal
impl Ord for SafeDecimal
Source§fn cmp(&self, other: &SafeDecimal) -> Ordering
fn cmp(&self, other: &SafeDecimal) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SafeDecimal
impl PartialEq for SafeDecimal
Source§fn eq(&self, other: &SafeDecimal) -> bool
fn eq(&self, other: &SafeDecimal) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SafeDecimal
impl PartialOrd for SafeDecimal
Source§impl Serialize for SafeDecimal
impl Serialize for SafeDecimal
impl StructuralPartialEq for SafeDecimal
Source§impl Sub for SafeDecimal
impl Sub for SafeDecimal
Source§impl TryFrom<u32> for SafeDecimal
impl TryFrom<u32> for SafeDecimal
Source§impl TryFrom<u64> for SafeDecimal
impl TryFrom<u64> for SafeDecimal
Auto Trait Implementations§
impl Freeze for SafeDecimal
impl RefUnwindSafe for SafeDecimal
impl Send for SafeDecimal
impl Sync for SafeDecimal
impl Unpin for SafeDecimal
impl UnsafeUnpin for SafeDecimal
impl UnwindSafe for SafeDecimal
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