pub struct ExactNum(/* private fields */);Implementations§
Source§impl ExactNum
impl ExactNum
pub fn parse_literal(src: &str) -> Result<Self, ParseNumError>
pub fn parse_canonical(src: &str) -> Result<Self, ParseNumError>
pub fn from_usize(value: usize) -> Self
pub fn is_zero(&self) -> bool
pub fn add(&self, other: &Self) -> Self
pub fn sub(&self, other: &Self) -> Self
pub fn mul(&self, other: &Self) -> Self
pub fn div(&self, other: &Self) -> Self
pub fn neg(&self) -> Self
pub fn to_json_value(&self) -> Value
pub fn canonical_string(&self) -> String
Trait Implementations§
Source§impl Ord for ExactNum
impl Ord for ExactNum
Source§impl PartialOrd for ExactNum
impl PartialOrd for ExactNum
impl Eq for ExactNum
impl StructuralPartialEq for ExactNum
Auto Trait Implementations§
impl Freeze for ExactNum
impl RefUnwindSafe for ExactNum
impl Send for ExactNum
impl Sync for ExactNum
impl Unpin for ExactNum
impl UnsafeUnpin for ExactNum
impl UnwindSafe for ExactNum
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