[−][src]Struct abstutil::cli::CmdArgs
Fields
kv: HashMap<String, String>
bits: HashSet<String>
free: Vec<String>
used: HashSet<String>
Implementations
impl CmdArgs
[src]
pub fn new() -> CmdArgs
[src]
pub fn from_args(raw: Vec<String>) -> CmdArgs
[src]
pub fn required(&mut self, key: &str) -> String
[src]
pub fn optional(&mut self, key: &str) -> Option<String>
[src]
pub fn optional_parse<T, E, F: Fn(&str) -> Result<T, E>>(
&mut self,
key: &str,
parser: F
) -> Option<T>
[src]
&mut self,
key: &str,
parser: F
) -> Option<T>
pub fn true_false(&mut self, key: &str) -> bool
[src]
pub fn enabled(&mut self, key: &str) -> bool
[src]
pub fn required_free(&mut self) -> String
[src]
pub fn optional_free(&mut self) -> Option<String>
[src]
pub fn done(&mut self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for CmdArgs
impl Send for CmdArgs
impl Sync for CmdArgs
impl Unpin for CmdArgs
impl UnwindSafe for CmdArgs
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,