Zero is a problem for me.

This commit is contained in:
2018-04-04 17:49:50 -04:00
parent 20592a3d65
commit 8a4693d30d
2 changed files with 27 additions and 0 deletions

View File

@@ -11,6 +11,14 @@ pub struct UCN {
}
impl UCN {
pub fn zero() -> UCN {
UCN{ contents: vec![] }
}
pub fn is_zero(&self) -> bool {
self.contents.len() == 0
}
fn clean(&mut self) {
loop {
match self.contents.pop() {