Enum bindgen::callbacks::IntKind [] [src]

pub enum IntKind {
    Bool,
    SChar,
    UChar,
    Char {
        is_signed: bool,
    },
    Short,
    UShort,
    Int,
    UInt,
    Long,
    ULong,
    LongLong,
    ULongLong,
    I8,
    U8,
    I16,
    U16,
    I32,
    U32,
    I64,
    U64,
    I128,
    U128,
    Custom {
        name: &'static str,
        is_signed: bool,
    },
}

Which integral type are we dealing with?

Variants

A bool.

A signed char.

An unsigned char.

A platform-dependent char type, with the signedness support.

Fields of Char

Whether the char is signed for the target platform.

A short.

An unsigned short.

An int.

An unsigned int.

A long.

An unsigned long.

A long long.

An unsigned long long.

A 8-bit signed integer.

A 8-bit unsigned integer.

A 16-bit signed integer.

Either a char16_t or a wchar_t.

A 32-bit signed integer.

A 32-bit unsigned integer.

A 64-bit signed integer.

A 64-bit unsigned integer.

An int128_t

A uint128_t.

A custom integer type, used to allow custom macro types depending on range.

Fields of Custom

The name of the type, which would be used without modification.

Whether the type is signed or not.

Methods

impl IntKind
[src]

Is this integral type signed?

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).

Whether this type's signedness matches the value.

Trait Implementations

impl Debug for IntKind
[src]

Formats the value using the given formatter.

impl Copy for IntKind
[src]

impl Clone for IntKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for IntKind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for IntKind
[src]

impl Hash for IntKind
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialOrd for IntKind
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for IntKind
[src]

This method returns an Ordering between self and other. Read more