From 9380ed5a917b92858cc61b38ec2e300ab08a2337 Mon Sep 17 00:00:00 2001 From: Emilio Cobos Álvarez Date: Tue, 15 Nov 2016 21:46:17 +0100 Subject: ir: var: Missing docs. --- libbindgen/src/ir/var.rs | 5 +++++ 1 file changed, 5 insertions(+) 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), } -- cgit v1.2.3