diff options
Diffstat (limited to 'libbindgen/src')
-rw-r--r-- | libbindgen/src/ir/var.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libbindgen/src/ir/var.rs b/libbindgen/src/ir/var.rs index 51100514..3270b332 100644 --- a/libbindgen/src/ir/var.rs +++ b/libbindgen/src/ir/var.rs @@ -10,11 +10,16 @@ use super::int::IntKind; use super::item::Item; use super::ty::{FloatKind, TypeKind}; +/// The type for a constant variable. #[derive(Debug)] pub enum VarType { + /// An integer. Int(i64), + /// A floating point number. Float(f64), + /// A character. Char(u8), + /// A string, not necessarily well-formed utf-8. String(Vec<u8>), } |