pub struct ReplayOptions {
pub replay_dirs: Option<Vec<String>>,
pub replay_files: Option<Vec<String>>,
pub start: usize,
pub end: Option<usize>,
pub debug: bool,
}Expand description
Options for replaying test cases.
This struct defines the parameters for replaying previously generated test cases, including paths to corpus files, start/end indices, and debug settings.
Fields§
§replay_dirs: Option<Vec<String>>Replay corpus dir, could be dirs
replay_files: Option<Vec<String>>Replay corpus file, could be files
start: usizeStart replaying from this index (0-based, inclusive)
end: Option<usize>End replaying at this index (0-based, exclusive), defaults to all files if not specified
debug: boolEnable debug mode
Implementations§
Source§impl ReplayOptions
impl ReplayOptions
Sourcepub fn get_replay_files(&self) -> Vec<PathBuf>
pub fn get_replay_files(&self) -> Vec<PathBuf>
Get the list of files to replay.
§Returns
A vector of PathBuf objects pointing to the files that should be replayed.
§Description
This method processes both directories and individual files specified in the options. For directories, it includes all files within those directories. It skips any paths that don’t exist or are not of the expected type.
Trait Implementations§
Source§impl Args for ReplayOptions
impl Args for ReplayOptions
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 Debug for ReplayOptions
impl Debug for ReplayOptions
Source§impl FromArgMatches for ReplayOptions
impl FromArgMatches for ReplayOptions
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 ReplayOptions
impl RefUnwindSafe for ReplayOptions
impl Send for ReplayOptions
impl Sync for ReplayOptions
impl Unpin for ReplayOptions
impl UnwindSafe for ReplayOptions
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