pub enum UnsignedIntValue {
U8(u8),
U16(u16),
U32(u32),
U64(u64),
}Expand description
Represents an unsigned integer number.
Variants§
Implementations§
Source§impl UnsignedIntValue
impl UnsignedIntValue
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.
Trait Implementations§
Source§impl Clone for UnsignedIntValue
impl Clone for UnsignedIntValue
Source§fn clone(&self) -> UnsignedIntValue
fn clone(&self) -> UnsignedIntValue
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 UnsignedIntValue
impl Debug for UnsignedIntValue
Source§impl Default for UnsignedIntValue
impl Default for UnsignedIntValue
Source§impl Display for UnsignedIntValue
impl Display for UnsignedIntValue
Source§impl From<u16> for UnsignedIntValue
impl From<u16> for UnsignedIntValue
Source§impl From<u32> for UnsignedIntValue
impl From<u32> for UnsignedIntValue
Source§impl From<u64> for UnsignedIntValue
impl From<u64> for UnsignedIntValue
Source§impl From<u8> for UnsignedIntValue
impl From<u8> for UnsignedIntValue
Source§impl Hash for UnsignedIntValue
impl Hash for UnsignedIntValue
Source§impl Ord for UnsignedIntValue
impl Ord for UnsignedIntValue
Source§impl PartialEq for UnsignedIntValue
impl PartialEq for UnsignedIntValue
Source§impl PartialOrd for UnsignedIntValue
impl PartialOrd for UnsignedIntValue
Source§impl TryFrom<UnsignedIntValue> for u16
impl TryFrom<UnsignedIntValue> for u16
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<UnsignedIntValue> for u32
impl TryFrom<UnsignedIntValue> for u32
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<UnsignedIntValue> for u64
impl TryFrom<UnsignedIntValue> for u64
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<UnsignedIntValue> for u8
impl TryFrom<UnsignedIntValue> for u8
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<UnsignedIntValue> for usize
impl TryFrom<UnsignedIntValue> for usize
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
impl Copy for UnsignedIntValue
impl Eq for UnsignedIntValue
Auto Trait Implementations§
impl Freeze for UnsignedIntValue
impl RefUnwindSafe for UnsignedIntValue
impl Send for UnsignedIntValue
impl Sync for UnsignedIntValue
impl Unpin for UnsignedIntValue
impl UnwindSafe for UnsignedIntValue
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