Struct codegenrs::RustfmtArgs
source · pub struct RustfmtArgs { /* private fields */ }
Available on crate feature
clap
only.Expand description
CLI arguments to flatten
into your args
Example
#[derive(clap::Parser)]
struct Args{
#[arg(short('i'), long)]
input: std::path::PathBuf,
#[command(flatten)]
codegen: codegenrs::CodeGenArgs,
#[command(flatten)]
rustfmt: codegenrs::RustfmtArgs,
}
Implementations§
Trait Implementations§
source§impl Args for RustfmtArgs
impl Args for RustfmtArgs
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
source§impl Debug for RustfmtArgs
impl Debug for RustfmtArgs
source§impl FromArgMatches for RustfmtArgs
impl FromArgMatches for RustfmtArgs
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 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>
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§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Auto Trait Implementations§
impl RefUnwindSafe for RustfmtArgs
impl Send for RustfmtArgs
impl Sync for RustfmtArgs
impl Unpin for RustfmtArgs
impl UnwindSafe for RustfmtArgs
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more