Enum autocxx_bindgen::callbacks::IntKind[][src]

pub enum IntKind {
Show 24 variants Bool, SChar, UChar, WChar, 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, },
}
Expand description

Which integral type are we dealing with?

Variants

Bool

A bool.

SChar

A signed char.

UChar

An unsigned char.

WChar

An wchar_t.

Char

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

Fields of Char

is_signed: bool

Whether the char is signed for the target platform.

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

Either a char16_t or a wchar_t.

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

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

Fields of Custom

name: &'static str

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

is_signed: bool

Whether the type is signed or not.

Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

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

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

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

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

This method tests for !=.

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.