Skip to content

Commit ea35be8

Browse files
committed
ir: var: Missing docs.
1 parent 943994b commit ea35be8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libbindgen/src/ir/var.rs

+5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@ use super::int::IntKind;
1010
use super::item::Item;
1111
use super::ty::{FloatKind, TypeKind};
1212

13+
/// The type for a constant variable.
1314
#[derive(Debug)]
1415
pub enum VarType {
16+
/// An integer.
1517
Int(i64),
18+
/// A floating point number.
1619
Float(f64),
20+
/// A character.
1721
Char(u8),
22+
/// A string, not necessarily well-formed utf-8.
1823
String(Vec<u8>),
1924
}
2025

0 commit comments

Comments
 (0)