pub struct CompareParams {
pub method: CompareMethod,
pub unit: Dimension,
pub ignore_errors: bool,
pub git_pull: bool,
pub git_force: bool,
pub offline: bool,
}
Expand description
Parameters for modifying the benchmark behaviour.
Fields§
§method: CompareMethod
§unit: Dimension
§ignore_errors: bool
§git_pull: bool
Do a ‘git pull’ after checking out the refname.
This ensures that you get the newest commit on a branch.
git_force: bool
Use a git hard-reset instead of checkout.
offline: bool
Don’t access the network.
This overrides any other options like --git-pull
.
Implementations§
Source§impl CompareParams
impl CompareParams
pub fn should_pull(&self) -> bool
Trait Implementations§
Source§impl Args for CompareParams
impl Args for CompareParams
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 Clone for CompareParams
impl Clone for CompareParams
Source§fn clone(&self) -> CompareParams
fn clone(&self) -> CompareParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CompareParams
impl Debug for CompareParams
Source§impl FromArgMatches for CompareParams
impl FromArgMatches for CompareParams
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
.Source§impl PartialEq for CompareParams
impl PartialEq for CompareParams
impl Eq for CompareParams
impl StructuralPartialEq for CompareParams
Auto Trait Implementations§
impl Freeze for CompareParams
impl RefUnwindSafe for CompareParams
impl Send for CompareParams
impl Sync for CompareParams
impl Unpin for CompareParams
impl UnwindSafe for CompareParams
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