[−][src]Crate data_models
A data model is the choices of bit width of integer types by each platform.
This library is used to lookup the sizes of various C-types of a data model.
Examples
use data_models::*; let model = DataModel::LP64; // e.g. Linux let p = model.size_of::<Pointer>(); assert_eq!(p, 8);
Enums
Char | Char represents the |
DataModel | A data model is the choices of bit width of integer types by each platform. |
Int | Int represents the |
Long | Long represents the |
LongLong | LongLong represents the |
Pointer | Pointer represents the |
Short | Short represents the |