pub struct NumericValue(/* private fields */);Expand description
Lossless numeric value captured by generated range and cast errors.
The representation is private so future integer-like values can be added
without exposing the enum shape. Use the as_* methods to recover a
primitive integer only when the conversion is lossless.
Implementations§
Source§impl NumericValue
impl NumericValue
Trait Implementations§
Source§impl Clone for NumericValue
impl Clone for NumericValue
Source§fn clone(&self) -> NumericValue
fn clone(&self) -> NumericValue
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 NumericValue
impl Debug for NumericValue
Source§impl Display for NumericValue
impl Display for NumericValue
Source§impl From<i128> for NumericValue
impl From<i128> for NumericValue
Source§impl From<i16> for NumericValue
impl From<i16> for NumericValue
Source§impl From<i32> for NumericValue
impl From<i32> for NumericValue
Source§impl From<i64> for NumericValue
impl From<i64> for NumericValue
Source§impl From<i8> for NumericValue
impl From<i8> for NumericValue
Source§impl From<u128> for NumericValue
impl From<u128> for NumericValue
Source§impl From<u16> for NumericValue
impl From<u16> for NumericValue
Source§impl From<u32> for NumericValue
impl From<u32> for NumericValue
Source§impl From<u64> for NumericValue
impl From<u64> for NumericValue
Source§impl From<u8> for NumericValue
impl From<u8> for NumericValue
Source§impl PartialEq for NumericValue
impl PartialEq for NumericValue
Source§fn eq(&self, other: &NumericValue) -> bool
fn eq(&self, other: &NumericValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Valuable for NumericValue
Available on crate feature valuable only.
impl Valuable for NumericValue
Available on crate feature
valuable only.impl Copy for NumericValue
impl Eq for NumericValue
impl StructuralPartialEq for NumericValue
Auto Trait Implementations§
impl Freeze for NumericValue
impl RefUnwindSafe for NumericValue
impl Send for NumericValue
impl Sync for NumericValue
impl Unpin for NumericValue
impl UnsafeUnpin for NumericValue
impl UnwindSafe for NumericValue
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