[−][src]Enum bindgen::callbacks::IntKind
Which integral type are we dealing with?
Variants
BoolA bool.
SCharA signed char.
UCharAn unsigned char.
WCharAn wchar_t.
CharA platform-dependent char type, with the signedness support.
Fields of Char
is_signed: boolWhether the char is signed for the target platform.
ShortA short.
UShortAn unsigned short.
IntAn int.
UIntAn unsigned int.
LongA long.
ULongAn unsigned long.
LongLongA long long.
ULongLongAn unsigned long long.
I8A 8-bit signed integer.
U8A 8-bit unsigned integer.
I16A 16-bit signed integer.
U16Either a char16_t or a wchar_t.
I32A 32-bit signed integer.
U32A 32-bit unsigned integer.
I64A 64-bit signed integer.
U64A 64-bit unsigned integer.
I128An int128_t
U128A uint128_t.
CustomA custom integer type, used to allow custom macro types depending on range.
Fields of Custom
Methods
impl IntKind[src]
pub fn is_signed(&self) -> bool[src]
Is this integral type signed?
pub fn known_size(&self) -> Option<usize>[src]
If this type has a known size, return it (in bytes). This is to alleviate libclang sometimes not giving us a layout (like in the case when an enum is defined inside a class with template parameters).
pub fn signedness_matches(&self, val: i64) -> bool[src]
Whether this type's signedness matches the value.
Trait Implementations
impl Ord for IntKind[src]
fn cmp(&self, other: &IntKind) -> Ordering[src]
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self[src]
clamp)Restrict a value to a certain interval. Read more
impl PartialOrd<IntKind> for IntKind[src]
fn partial_cmp(&self, other: &IntKind) -> Option<Ordering>[src]
fn lt(&self, other: &IntKind) -> bool[src]
fn le(&self, other: &IntKind) -> bool[src]
fn gt(&self, other: &IntKind) -> bool[src]
fn ge(&self, other: &IntKind) -> bool[src]
impl Clone for IntKind[src]
fn clone(&self) -> IntKind[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq<IntKind> for IntKind[src]
impl Eq for IntKind[src]
impl Copy for IntKind[src]
impl Debug for IntKind[src]
impl Hash for IntKind[src]
Auto Trait Implementations
impl Unpin for IntKind
impl Sync for IntKind
impl Send for IntKind
impl UnwindSafe for IntKind
impl RefUnwindSafe for IntKind
Blanket Implementations
impl<T> From<T> for T[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,