pub enum IntValue {
Signed(SignedIntValue),
Unsigned(UnsignedIntValue),
}Expand description
Represents an integer number.
Variants§
Implementations§
Source§impl IntValue
impl IntValue
Sourcepub fn to_signed(self) -> Result<SignedIntValue, TryFromIntError>
pub fn to_signed(self) -> Result<SignedIntValue, TryFromIntError>
Attempts to convert the value into a signed value.
Sourcepub fn to_unsigned(self) -> Result<UnsignedIntValue, TryFromIntError>
pub fn to_unsigned(self) -> Result<UnsignedIntValue, TryFromIntError>
Attempts to convert the value into an unsigned value.
Trait Implementations§
Source§impl Ord for IntValue
impl Ord for IntValue
Source§impl PartialOrd for IntValue
impl PartialOrd for IntValue
impl Copy for IntValue
impl Eq for IntValue
Auto Trait Implementations§
impl Freeze for IntValue
impl RefUnwindSafe for IntValue
impl Send for IntValue
impl Sync for IntValue
impl Unpin for IntValue
impl UnwindSafe for IntValue
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