Enum IntKind
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.
Implementations
impl Clone for IntKind
fn clone(self: &Self) -> IntKind
impl Copy for IntKind
impl Debug for IntKind
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Eq for IntKind
impl Freeze for IntKind
impl Hash for IntKind
fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)
impl Ord for IntKind
fn cmp(self: &Self, other: &IntKind) -> Ordering
impl PartialEq for IntKind
fn eq(self: &Self, other: &IntKind) -> bool
impl PartialOrd for IntKind
fn partial_cmp(self: &Self, other: &IntKind) -> Option<Ordering>
impl RefUnwindSafe for IntKind
impl Send for IntKind
impl StructuralPartialEq for IntKind
impl Sync for IntKind
impl Unpin for IntKind
impl UnwindSafe for IntKind
impl<T> Any for IntKind
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for IntKind
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for IntKind
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for IntKind
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for IntKind
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for IntKind
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for IntKind
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for IntKind
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for IntKind
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>