Enum IntType
pub enum IntType {
U8,
S8,
U16,
S16,
U32,
S32,
U64,
S64,
}
Expand description
Integer types of different sizes and signedness.
Variants§
U8
8 bit unsigned int
S8
8 bit signed int
U16
16 bit unsigned int
S16
16 bit signed int
U32
32 bit unsigned int
S32
32 bit signed int
U64
64 bit unsigned int
S64
64 bit signed int
Implementations§
§impl IntType
impl IntType
pub fn u_ptr_native() -> IntType
pub fn u_ptr_native() -> IntType
An unsigned IntType with the same size as native usize.
pub fn unsigned_with_size(size: usize) -> IntType
pub fn unsigned_with_size(size: usize) -> IntType
Returns an unsigned int type with the given size in bytes.
pub fn signed_with_size(size: usize) -> IntType
pub fn signed_with_size(size: usize) -> IntType
Returns a signed int type with the given size in bytes.
Trait Implementations§
§impl<'de> Deserialize<'de> for IntType
impl<'de> Deserialize<'de> for IntType
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IntType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IntType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for IntType
impl Serialize for IntType
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for IntType
impl Eq for IntType
impl StructuralPartialEq for IntType
Auto Trait Implementations§
impl Freeze for IntType
impl RefUnwindSafe for IntType
impl Send for IntType
impl Sync for IntType
impl Unpin for IntType
impl UnwindSafe for IntType
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
§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.