pub struct ExactNonNegativeJsonNumber { /* private fields */ }Expand description
A bounded, exact, finite JSON number used by final progress notifications.
The original JSON-number lexeme is retained for wire re-encoding. Ordering is computed from bounded decimal components, never through IEEE-754.
Implementations§
Source§impl ExactNonNegativeJsonNumber
impl ExactNonNegativeJsonNumber
Sourcepub fn try_from_number(number: Number) -> Result<Self, CommonTypeError>
pub fn try_from_number(number: Number) -> Result<Self, CommonTypeError>
Admits one bounded finite JSON number while retaining its spelling.
Sourcepub fn parse(lexeme: &str) -> Result<Self, CommonTypeError>
pub fn parse(lexeme: &str) -> Result<Self, CommonTypeError>
Parses one exact progress number from its JSON-number lexeme.
Trait Implementations§
Source§impl Clone for ExactNonNegativeJsonNumber
impl Clone for ExactNonNegativeJsonNumber
Source§fn clone(&self) -> ExactNonNegativeJsonNumber
fn clone(&self) -> ExactNonNegativeJsonNumber
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 ExactNonNegativeJsonNumber
impl Debug for ExactNonNegativeJsonNumber
Source§impl<'de> Deserialize<'de> for ExactNonNegativeJsonNumber
impl<'de> Deserialize<'de> for ExactNonNegativeJsonNumber
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
impl Eq for ExactNonNegativeJsonNumber
Source§impl Ord for ExactNonNegativeJsonNumber
impl Ord for ExactNonNegativeJsonNumber
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 PartialOrd for ExactNonNegativeJsonNumber
impl PartialOrd for ExactNonNegativeJsonNumber
Auto Trait Implementations§
impl Freeze for ExactNonNegativeJsonNumber
impl RefUnwindSafe for ExactNonNegativeJsonNumber
impl Send for ExactNonNegativeJsonNumber
impl Sync for ExactNonNegativeJsonNumber
impl Unpin for ExactNonNegativeJsonNumber
impl UnsafeUnpin for ExactNonNegativeJsonNumber
impl UnwindSafe for ExactNonNegativeJsonNumber
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).