pub struct Number(/* private fields */);Expand description
A JSON number, in the lexical form the document carried.
FHIR forbids reading a decimal through a binary float: “Do not use an IEEE type floating point type, instead use something that works like a true decimal” (https://hl7.org/fhir/R4B/datatypes.html#decimal), so the number keeps its text and the codec never rounds it.
Implementations§
Trait Implementations§
impl Eq for Number
impl StructuralPartialEq for Number
Auto Trait Implementations§
impl Freeze for Number
impl RefUnwindSafe for Number
impl Send for Number
impl Sync for Number
impl Unpin for Number
impl UnsafeUnpin for Number
impl UnwindSafe for Number
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