pub enum SignedIntValue {
I8(i8),
I16(i16),
I32(i32),
I64(i64),
}Expand description
Represents a signed integer number.
Variants§
Implementations§
Source§impl SignedIntValue
impl SignedIntValue
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 Clone for SignedIntValue
impl Clone for SignedIntValue
Source§fn clone(&self) -> SignedIntValue
fn clone(&self) -> SignedIntValue
Returns a duplicate of the value. Read more
1.0.0 · 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 SignedIntValue
impl Debug for SignedIntValue
Source§impl Default for SignedIntValue
impl Default for SignedIntValue
Source§impl Display for SignedIntValue
impl Display for SignedIntValue
Source§impl From<i16> for SignedIntValue
impl From<i16> for SignedIntValue
Source§impl From<i32> for SignedIntValue
impl From<i32> for SignedIntValue
Source§impl From<i64> for SignedIntValue
impl From<i64> for SignedIntValue
Source§impl From<i8> for SignedIntValue
impl From<i8> for SignedIntValue
Source§impl Hash for SignedIntValue
impl Hash for SignedIntValue
Source§impl Ord for SignedIntValue
impl Ord for SignedIntValue
Source§impl PartialEq for SignedIntValue
impl PartialEq for SignedIntValue
Source§impl PartialOrd for SignedIntValue
impl PartialOrd for SignedIntValue
Source§impl TryFrom<SignedIntValue> for i16
impl TryFrom<SignedIntValue> for i16
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<SignedIntValue> for i32
impl TryFrom<SignedIntValue> for i32
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<SignedIntValue> for i64
impl TryFrom<SignedIntValue> for i64
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<SignedIntValue> for i8
impl TryFrom<SignedIntValue> for i8
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<SignedIntValue> for isize
impl TryFrom<SignedIntValue> for isize
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
impl Copy for SignedIntValue
impl Eq for SignedIntValue
Auto Trait Implementations§
impl Freeze for SignedIntValue
impl RefUnwindSafe for SignedIntValue
impl Send for SignedIntValue
impl Sync for SignedIntValue
impl Unpin for SignedIntValue
impl UnwindSafe for SignedIntValue
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