aboutsummaryrefslogtreecommitdiff
path: root/src/grid.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/grid.rs')
-rw-r--r--src/grid.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/grid.rs b/src/grid.rs
index 93d9cd28..0418ed53 100644
--- a/src/grid.rs
+++ b/src/grid.rs
@@ -26,7 +26,7 @@ pub struct Grid {
raw: Vec<Row>,
/// Number of columns
- _cols: usize,
+ cols: usize,
/// Number of rows.
///
@@ -43,7 +43,7 @@ impl Grid {
Grid {
raw: raw,
- _cols: cols,
+ cols: cols,
rows: rows,
}
}
@@ -51,6 +51,10 @@ impl Grid {
pub fn rows(&self) -> usize {
self.rows
}
+
+ pub fn cols(&self) -> usize {
+ self.cols
+ }
}
impl Index<usize> for Grid {