pub struct IntegerValue(/* private fields */);Expand description
Lossless integer value captured by generated integer range and conversion 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 IntegerValue
impl IntegerValue
Trait Implementations§
Source§impl Clone for IntegerValue
impl Clone for IntegerValue
Source§fn clone(&self) -> IntegerValue
fn clone(&self) -> IntegerValue
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 IntegerValue
impl Debug for IntegerValue
Source§impl Display for IntegerValue
impl Display for IntegerValue
Source§impl From<i128> for IntegerValue
impl From<i128> for IntegerValue
Source§impl From<i16> for IntegerValue
impl From<i16> for IntegerValue
Source§impl From<i32> for IntegerValue
impl From<i32> for IntegerValue
Source§impl From<i64> for IntegerValue
impl From<i64> for IntegerValue
Source§impl From<i8> for IntegerValue
impl From<i8> for IntegerValue
Source§impl From<u128> for IntegerValue
impl From<u128> for IntegerValue
Source§impl From<u16> for IntegerValue
impl From<u16> for IntegerValue
Source§impl From<u32> for IntegerValue
impl From<u32> for IntegerValue
Source§impl From<u64> for IntegerValue
impl From<u64> for IntegerValue
Source§impl From<u8> for IntegerValue
impl From<u8> for IntegerValue
Source§impl PartialEq for IntegerValue
impl PartialEq for IntegerValue
Source§fn eq(&self, other: &IntegerValue) -> bool
fn eq(&self, other: &IntegerValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Valuable for IntegerValue
Available on crate feature valuable only.
impl Valuable for IntegerValue
Available on crate feature
valuable only.impl Copy for IntegerValue
impl Eq for IntegerValue
impl StructuralPartialEq for IntegerValue
Auto Trait Implementations§
impl Freeze for IntegerValue
impl RefUnwindSafe for IntegerValue
impl Send for IntegerValue
impl Sync for IntegerValue
impl Unpin for IntegerValue
impl UnsafeUnpin for IntegerValue
impl UnwindSafe for IntegerValue
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