Enum IntKind
pub enum IntKind
Which integral type are we dealing with?
Variants
-
Bool A
bool.-
SChar A
signed char.-
UChar An
unsigned char.-
WChar A
wchar_t.-
Char { is_signed: bool } A platform-dependent
chartype, with the signedness support.-
Short A
short.-
UShort An
unsigned short.-
Int An
int.-
UInt An
unsigned int.-
Long A
long.-
ULong An
unsigned long.-
LongLong A
long long.-
ULongLong An
unsigned long long.-
I8 A 8-bit signed integer.
-
U8 A 8-bit unsigned integer.
-
I16 A 16-bit signed integer.
-
U16 A 16-bit integer, used only for enum size representation.
-
Char16 The C++ type
char16_t, which is its own type (unlike in C).-
I32 A 32-bit signed integer.
-
U32 A 32-bit unsigned integer.
-
I64 A 64-bit signed integer.
-
U64 A 64-bit unsigned integer.
-
I128 An
int128_t-
U128 A
uint128_t.-
Custom { name: &'static str, is_signed: bool } A custom integer type, used to allow custom macro types depending on range.
Trait Implementations
impl Clone for IntKind
fn clone(&self) -> IntKind
impl Copy for IntKind
impl Debug for IntKind
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for IntKind
impl Hash for IntKind
fn hash<__H: Hasher>(&self, state: &mut __H)
impl Ord for IntKind
fn cmp(&self, other: &IntKind) -> Ordering
impl PartialEq for IntKind
fn eq(&self, other: &IntKind) -> bool
impl PartialOrd for IntKind
fn partial_cmp(&self, other: &IntKind) -> Option<Ordering>
impl StructuralPartialEq for IntKind
Auto Trait Implementations
impl Freeze for IntKind
impl RefUnwindSafe for IntKind
impl Send for IntKind
impl Sync for IntKind
impl Unpin for IntKind
impl UnsafeUnpin for IntKind
impl UnwindSafe for IntKind
Blanket Implementations
impl<T> Any for IntKind
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for IntKind
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for IntKind
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for IntKind
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for IntKind
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for IntKind
impl<T> ToOwned for IntKind
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for IntKind
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for IntKind
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for IntKind
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>