Enum cpp_to_rust::cpp_type::CppBuiltInNumericType
[−]
[src]
pub enum CppBuiltInNumericType { Bool, Char, SChar, UChar, WChar, Char16, Char32, Short, UShort, Int, UInt, Long, ULong, LongLong, ULongLong, Int128, UInt128, Float, Double, LongDouble, }
Available built-in C++ numeric types.
All these types have corresponding
clang::TypeKind
values (except for CharS
and CharU
which map to CppBuiltInNumericType::Char
)
Variants
Bool
Char
SChar
UChar
WChar
Char16
Char32
Short
UShort
Int
UInt
Long
ULong
LongLong
ULongLong
Int128
UInt128
Float
Double
LongDouble
Methods
impl CppBuiltInNumericType
[src]
fn to_cpp_code(&self) -> &'static str
fn all() -> [CppBuiltInNumericType; 20]
Trait Implementations
impl Hash for CppBuiltInNumericType
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for CppBuiltInNumericType
[src]
fn clone(&self) -> CppBuiltInNumericType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for CppBuiltInNumericType
[src]
impl PartialEq for CppBuiltInNumericType
[src]
fn eq(&self, __arg_0: &CppBuiltInNumericType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.