Struct tiny_terminal_snake::Args
source · pub struct Args {
pub gui: bool,
pub row: usize,
pub col: usize,
}
Fields§
§gui: bool
§row: usize
§col: usize
Trait Implementations§
source§impl FromArgMatches for Args
impl FromArgMatches for Args
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§impl Parser for Args
impl Parser for Args
source§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, exit on error
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, exit on error
source§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, return Err on error.
source§fn clap<'help>() -> App<'help>
fn clap<'help>() -> App<'help>
👎Deprecated since 3.0.0:
StructOpt::clap
is replaced with IntoApp::into_app
(derived as part of Parser
)source§fn from_clap(matches: &ArgMatches) -> Self
fn from_clap(matches: &ArgMatches) -> Self
👎Deprecated since 3.0.0:
StructOpt::clap
is replaced with IntoApp::into_app
(derived as part of Parser
)Deprecated,
StructOpt::from_clap
replaced with FromArgMatches::from_arg_matches
(derive as part of
Parser
)source§fn from_args() -> Self
fn from_args() -> Self
👎Deprecated since 3.0.0:
StructOpt::from_args
is replaced with Parser::parse
(note the change in derives)Deprecated,
StructOpt::from_args
replaced with Parser::parse
(note the change in derives)source§fn from_args_safe() -> Result<Self, Error>
fn from_args_safe() -> Result<Self, Error>
👎Deprecated since 3.0.0:
StructOpt::from_args_safe
is replaced with Parser::try_parse
(note the change in derives)Deprecated,
StructOpt::from_args_safe
replaced with Parser::try_parse
(note the change in derives)source§fn from_iter<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn from_iter<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
👎Deprecated since 3.0.0:
StructOpt::from_iter
is replaced with Parser::parse_from
(note the change in derives)Deprecated,
StructOpt::from_iter
replaced with Parser::parse_from
(note the change in derives)source§fn from_iter_safe<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn from_iter_safe<I, T>(itr: I) -> Result<Self, Error>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
👎Deprecated since 3.0.0:
StructOpt::from_iter_safe
is replaced with Parser::try_parse_from
(note the change in derives)Deprecated,
StructOpt::from_iter_safe
replaced with Parser::try_parse_from
(note the
change in derives)