pub struct NormalizedDecimal(/* private fields */);Implementations§
Source§impl NormalizedDecimal
impl NormalizedDecimal
pub fn from_f32(value: f32) -> Result<NormalizedDecimal, ManifestSchemaError>
pub fn parse( value: impl Into<String>, ) -> Result<NormalizedDecimal, ManifestSchemaError>
pub fn as_str(&self) -> &str
pub fn get(&self) -> f32
Trait Implementations§
Source§impl Clone for NormalizedDecimal
impl Clone for NormalizedDecimal
Source§fn clone(&self) -> NormalizedDecimal
fn clone(&self) -> NormalizedDecimal
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 moreSource§impl Debug for NormalizedDecimal
impl Debug for NormalizedDecimal
Source§impl<'de> Deserialize<'de> for NormalizedDecimal
impl<'de> Deserialize<'de> for NormalizedDecimal
Source§fn deserialize<D>(
deserializer: D,
) -> Result<NormalizedDecimal, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<NormalizedDecimal, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NormalizedDecimal
Source§impl Hash for NormalizedDecimal
impl Hash for NormalizedDecimal
Source§impl JsonSchema for NormalizedDecimal
impl JsonSchema for NormalizedDecimal
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§impl Ord for NormalizedDecimal
impl Ord for NormalizedDecimal
Source§fn cmp(&self, other: &NormalizedDecimal) -> Ordering
fn cmp(&self, other: &NormalizedDecimal) -> 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 NormalizedDecimal
impl PartialEq for NormalizedDecimal
Source§fn eq(&self, other: &NormalizedDecimal) -> bool
fn eq(&self, other: &NormalizedDecimal) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for NormalizedDecimal
impl PartialOrd for NormalizedDecimal
Source§impl Serialize for NormalizedDecimal
impl Serialize for NormalizedDecimal
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for NormalizedDecimal
Auto Trait Implementations§
impl Freeze for NormalizedDecimal
impl RefUnwindSafe for NormalizedDecimal
impl Send for NormalizedDecimal
impl Sync for NormalizedDecimal
impl Unpin for NormalizedDecimal
impl UnsafeUnpin for NormalizedDecimal
impl UnwindSafe for NormalizedDecimal
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