pub struct YamlNumber { /* private fields */ }Expand description
An exact, finite YAML number normalized for semantic comparison.
Ordering compares mathematical values without floating-point conversion. Its display form is canonical JSON-compatible decimal syntax.
Implementations§
Source§impl YamlNumber
impl YamlNumber
Trait Implementations§
Source§impl Clone for YamlNumber
impl Clone for YamlNumber
Source§fn clone(&self) -> YamlNumber
fn clone(&self) -> YamlNumber
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 YamlNumber
impl Debug for YamlNumber
Source§impl Display for YamlNumber
impl Display for YamlNumber
impl Eq for YamlNumber
Source§impl Ord for YamlNumber
impl Ord for YamlNumber
Source§fn cmp(&self, other: &YamlNumber) -> Ordering
fn cmp(&self, other: &YamlNumber) -> 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 YamlNumber
impl PartialEq for YamlNumber
Source§impl PartialOrd for YamlNumber
impl PartialOrd for YamlNumber
Auto Trait Implementations§
impl Freeze for YamlNumber
impl RefUnwindSafe for YamlNumber
impl Send for YamlNumber
impl Sync for YamlNumber
impl Unpin for YamlNumber
impl UnsafeUnpin for YamlNumber
impl UnwindSafe for YamlNumber
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