pub struct DatatypeProperties {
pub char_size: ByteSize,
pub double_size: ByteSize,
pub float_size: ByteSize,
pub integer_size: ByteSize,
pub long_double_size: ByteSize,
pub long_long_size: ByteSize,
pub long_size: ByteSize,
pub pointer_size: ByteSize,
pub short_size: ByteSize,
}
Expand description
Properties of C/C++ data types such as size.
Fields§
§char_size: ByteSize
Holds the size of the char type
double_size: ByteSize
Holds the size of the double type
float_size: ByteSize
Holds the size of the float type
integer_size: ByteSize
Holds the size of the integer type
long_double_size: ByteSize
Holds the size of the long double type
long_long_size: ByteSize
Holds the size of the long long type
long_size: ByteSize
Holds the size of the long type
pointer_size: ByteSize
Holds the size of the pointer type
short_size: ByteSize
Holds the size of the short type
Implementations§
source§impl DatatypeProperties
impl DatatypeProperties
sourcepub fn get_size_from_data_type(&self, data_type: Datatype) -> ByteSize
pub fn get_size_from_data_type(&self, data_type: Datatype) -> ByteSize
Matches a given data type with its size from the properties struct.
Trait Implementations§
source§impl Clone for DatatypeProperties
impl Clone for DatatypeProperties
source§fn clone(&self) -> DatatypeProperties
fn clone(&self) -> DatatypeProperties
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DatatypeProperties
impl Debug for DatatypeProperties
source§impl<'de> Deserialize<'de> for DatatypeProperties
impl<'de> Deserialize<'de> for DatatypeProperties
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 Hash for DatatypeProperties
impl Hash for DatatypeProperties
source§impl PartialEq for DatatypeProperties
impl PartialEq for DatatypeProperties
source§fn eq(&self, other: &DatatypeProperties) -> bool
fn eq(&self, other: &DatatypeProperties) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DatatypeProperties
impl Serialize for DatatypeProperties
impl Eq for DatatypeProperties
impl StructuralEq for DatatypeProperties
impl StructuralPartialEq for DatatypeProperties
Auto Trait Implementations§
impl RefUnwindSafe for DatatypeProperties
impl Send for DatatypeProperties
impl Sync for DatatypeProperties
impl Unpin for DatatypeProperties
impl UnwindSafe for DatatypeProperties
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.