diff options
author | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-11-15 21:46:17 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-11-16 00:47:11 +0100 |
commit | 9380ed5a917b92858cc61b38ec2e300ab08a2337 (patch) | |
tree | 63c8e86a893e6e67053d974d20eb45f3a0df9c46 /libbindgen/src | |
parent | b348e73b81f9b5fa350defe313810c2770063827 (diff) |
ir: var: Missing docs.
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>), } |