pub struct Args {
    pub gui: bool,
    pub row: usize,
    pub col: usize,
}

Fields§

§gui: bool§row: usize§col: usize

Trait Implementations§

source§

impl Args for Args

source§

fn augment_args<'b>(__clap_app: App<'b>) -> App<'b>

Append to App so it can instantiate Self. Read more
source§

fn augment_args_for_update<'b>(__clap_app: App<'b>) -> App<'b>

Append to App so it can update self. Read more
source§

impl Debug for Args

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Args

source§

fn default() -> Args

Returns the “default value” for a type. Read more
source§

impl FromArgMatches for Args

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl IntoApp for Args

source§

fn into_app<'b>() -> App<'b>

Build an App that can instantiate Self. Read more
source§

fn into_app_for_update<'b>() -> App<'b>

Build an App that can update self. Read more
source§

impl Parser for Args

source§

fn parse() -> Self

Parse from std::env::args_os(), exit on error
source§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
source§

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,

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,

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,

Update from iterator, return Err on error.
source§

fn clap<'help>() -> App<'help>

👎Deprecated since 3.0.0: StructOpt::clap is replaced with IntoApp::into_app (derived as part of Parser)
Deprecated, StructOpt::clap replaced with IntoApp::into_app (derive as part of Parser)
source§

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

👎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>

👎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,

👎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,

👎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)

Auto Trait Implementations§

§

impl RefUnwindSafe for Args

§

impl Send for Args

§

impl Sync for Args

§

impl Unpin for Args

§

impl UnwindSafe for Args

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> RoundFrom<T> for T

§

fn round_from(x: T) -> T

§

impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,

§

fn round_into(self) -> U

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V