pub enum Field<Args> where
Args: ArgsTable,
Args::Text: Debug,
Args::Genre: Debug,
Args::Comment: Debug,
Args::Picture: Debug, {
Text(Text<Args>),
Frame(Frame<Args>),
}Expand description
Field-specific subcommand.
Variants
Text(Text<Args>)
Text field.
Frame(Frame<Args>)
Frame field.
Trait Implementations
sourceimpl<Args: Debug> Debug for Field<Args> where
Args: ArgsTable,
Args::Text: Debug,
Args::Genre: Debug,
Args::Comment: Debug,
Args::Picture: Debug,
impl<Args: Debug> Debug for Field<Args> where
Args: ArgsTable,
Args::Text: Debug,
Args::Genre: Debug,
Args::Comment: Debug,
Args::Picture: Debug,
sourceimpl<Args> FromArgMatches for Field<Args> where
Args: ArgsTable,
Args::Text: Debug,
Args::Genre: Debug,
Args::Comment: Debug,
Args::Picture: Debug,
impl<Args> FromArgMatches for Field<Args> where
Args: ArgsTable,
Args::Text: Debug,
Args::Genre: Debug,
Args::Comment: Debug,
Args::Picture: Debug,
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
sourcefn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
sourcefn 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.
sourcefn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches to self.
sourceimpl<Args> Run for Field<Args> where
Args: ArgsTable,
Args::Text: Debug,
Args::Genre: Debug,
Args::Comment: Debug,
Args::Picture: Debug,
Text<Args>: Run,
Frame<Args>: Run,
impl<Args> Run for Field<Args> where
Args: ArgsTable,
Args::Text: Debug,
Args::Genre: Debug,
Args::Comment: Debug,
Args::Picture: Debug,
Text<Args>: Run,
Frame<Args>: Run,
sourceimpl<Args> Subcommand for Field<Args> where
Args: ArgsTable,
Args::Text: Debug,
Args::Genre: Debug,
Args::Comment: Debug,
Args::Picture: Debug,
impl<Args> Subcommand for Field<Args> where
Args: ArgsTable,
Args::Text: Debug,
Args::Genre: Debug,
Args::Comment: Debug,
Args::Picture: Debug,
sourcefn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
sourcefn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
sourcefn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether Self can parse a specific subcommand
Auto Trait Implementations
impl<Args> RefUnwindSafe for Field<Args> where
<Args as ArgsTable>::Comment: RefUnwindSafe,
<Args as ArgsTable>::Genre: RefUnwindSafe,
<Args as ArgsTable>::Picture: RefUnwindSafe,
<Args as ArgsTable>::Text: RefUnwindSafe,
impl<Args> Send for Field<Args> where
<Args as ArgsTable>::Comment: Send,
<Args as ArgsTable>::Genre: Send,
<Args as ArgsTable>::Picture: Send,
<Args as ArgsTable>::Text: Send,
impl<Args> Sync for Field<Args> where
<Args as ArgsTable>::Comment: Sync,
<Args as ArgsTable>::Genre: Sync,
<Args as ArgsTable>::Picture: Sync,
<Args as ArgsTable>::Text: Sync,
impl<Args> Unpin for Field<Args> where
<Args as ArgsTable>::Comment: Unpin,
<Args as ArgsTable>::Genre: Unpin,
<Args as ArgsTable>::Picture: Unpin,
<Args as ArgsTable>::Text: Unpin,
impl<Args> UnwindSafe for Field<Args> where
<Args as ArgsTable>::Comment: UnwindSafe,
<Args as ArgsTable>::Genre: UnwindSafe,
<Args as ArgsTable>::Picture: UnwindSafe,
<Args as ArgsTable>::Text: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<X> Pipe for X
impl<X> Pipe for X
sourcefn pipe<Return, Function>(self, f: Function) -> Return where
Function: FnOnce(Self) -> Return,
fn pipe<Return, Function>(self, f: Function) -> Return where
Function: FnOnce(Self) -> Return,
Apply f to self. Read more
sourcefn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Return where
Function: FnOnce(&'a Self) -> Return,
fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Return where
Function: FnOnce(&'a Self) -> Return,
Apply f to &self. Read more
sourcefn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Return where
Function: FnOnce(&'a mut Self) -> Return,
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Return where
Function: FnOnce(&'a mut Self) -> Return,
Apply f to &mut self. Read more
sourcefn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
Self: AsRef<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
Self: AsRef<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
Apply f to &self where f takes a single parameter of type Param
and Self implements trait AsRef<Param>. Read more
sourcefn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return where
Self: AsMut<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return where
Self: AsMut<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
Apply f to &mut self where f takes a single parameter of type Param
and Self implements trait AsMut<Param>. Read more
sourcefn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
Self: Deref<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
Self: Deref<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
Apply f to &self where f takes a single parameter of type Param
and Self implements trait Deref<Target = Param>. Read more
sourcefn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Return where
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Return where
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
Apply f to &mut self where f takes a single parameter of type Param
and Self implements trait [DerefMut<Target = Param>]. Read more
sourcefn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
Self: Borrow<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
Self: Borrow<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
Apply f to &self where f takes a single parameter of type Param
and Self implements trait Borrow<Param>. Read more
sourcefn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Return where
Self: BorrowMut<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Return where
Self: BorrowMut<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
Apply f to &mut self where f takes a single parameter of type Param
and Self implements trait BorrowMut<Param>. Read more