pub enum Datatype {
Char,
Double,
Float,
Integer,
LongDouble,
LongLong,
Long,
Pointer,
Short,
}
Expand description
C/C++ data types.
Variants§
Char
C char data type
Double
C double data type
Float
C float data type
Integer
C integer data type
LongDouble
C long double data type
LongLong
C long long data type
Long
C long data type
Pointer
C pointer data type
Short
C short data type
Trait Implementations§
source§impl<'de> Deserialize<'de> for Datatype
impl<'de> Deserialize<'de> for Datatype
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<String> for Datatype
impl From<String> for Datatype
source§fn from(specifier: String) -> Self
fn from(specifier: String) -> Self
The purpose of this conversion is to locate parameters to variadic functions. Therefore, char types have to be mapped to the integer size since they undergo the default argument promotion. (e.g. 1 byte char -> 4 byte integer) The same holds for all float types that are promoted to doubles. (e.g. 8 byte float -> 16 byte double)
source§impl PartialEq for Datatype
impl PartialEq for Datatype
impl Eq for Datatype
impl StructuralEq for Datatype
impl StructuralPartialEq for Datatype
Auto Trait Implementations§
impl RefUnwindSafe for Datatype
impl Send for Datatype
impl Sync for Datatype
impl Unpin for Datatype
impl UnwindSafe for Datatype
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.