#[non_exhaustive]pub struct FfArgs {
pub workers: Option<NonZeroUsize>,
pub channel_capacity: Option<usize>,
pub batch_size: Option<usize>,
pub experimental_cache: bool,
pub warnings: bool,
}Expand description
cargo-ff-specific flags. All long names are prefixed --ff-* so they
can never collide with a flag added upstream by cargo fmt.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.workers: Option<NonZeroUsize>Number of worker threads. Defaults to available_parallelism().
channel_capacity: Option<usize>Bounded-channel capacity. Default 512. Hidden — benchmarking knob.
batch_size: Option<usize>Crates per rustfmt invocation. Higher amortizes spawn cost; lower gives finer scheduling granularity. Hidden — benchmarking knob.
experimental_cache: boolExperimental: skip rustfmt for crates whose *.rs mtimes match
the prior successful run. May produce stale results if files
outside manifest_dir are pulled in via #[path].
warnings: boolEmit advisory warnings to stderr (off by default).
Trait Implementations§
Source§impl Args for FfArgs
impl Args for FfArgs
Source§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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for FfArgs
impl FromArgMatches for FfArgs
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 Freeze for FfArgs
impl RefUnwindSafe for FfArgs
impl Send for FfArgs
impl Sync for FfArgs
impl Unpin for FfArgs
impl UnsafeUnpin for FfArgs
impl UnwindSafe for FfArgs
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