diff options
Diffstat (limited to 'argparse/src/bool.rs')
-rw-r--r-- | argparse/src/bool.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/argparse/src/bool.rs b/argparse/src/bool.rs deleted file mode 100644 index 6ada458..0000000 --- a/argparse/src/bool.rs +++ /dev/null @@ -1,22 +0,0 @@ -use std::cell::RefCell; -use std::rc::Rc; - -use super::action::Action; -use super::action::TypedAction; -use super::action::Action::Flag; -use super::generic::StoreConstAction; -use super::{StoreTrue, StoreFalse}; - - -impl TypedAction<bool> for StoreTrue { - fn bind<'x>(&self, cell: Rc<RefCell<&'x mut bool>>) -> Action<'x> { - return Flag(Box::new(StoreConstAction { cell: cell, value: true })); - } -} - -impl TypedAction<bool> for StoreFalse { - fn bind<'x>(&self, cell: Rc<RefCell<&'x mut bool>>) -> Action<'x> { - return Flag(Box::new(StoreConstAction { cell: cell, value: false })); - } -} - |