Struct wasi_test_generator::TestGenOptions
source · pub struct TestGenOptions {
pub(crate) free: Vec<String>,
pub(crate) nightly: bool,
pub(crate) all_versions: bool,
pub(crate) generate_wasm: bool,
pub(crate) set_up_toolchain: bool,
pub(crate) help: bool,
}
Fields§
§free: Vec<String>
if you want to specify specific tests to generate
nightly: bool
Whether to use the current nightly instead of the latest snapshot0 compiler
all_versions: bool
Whether or not to do operations for all versions of WASI or just the latest.
generate_wasm: bool
Whether or not the Wasm will be generated.
set_up_toolchain: bool
Whether or not the logic to install the needed Rust compilers is run.
help: bool
Print the help message
Trait Implementations§
source§impl Debug for TestGenOptions
impl Debug for TestGenOptions
source§impl Options for TestGenOptions
impl Options for TestGenOptions
source§fn parse<__S: AsRef<str>>(_parser: &mut Parser<'_, __S>) -> Result<Self, Error>
fn parse<__S: AsRef<str>>(_parser: &mut Parser<'_, __S>) -> Result<Self, Error>
Parses arguments until the given parser is exhausted or until
an error is encountered.
source§fn command(&self) -> Option<&dyn Options>
fn command(&self) -> Option<&dyn Options>
Returns the subcommand instance, if present. Read more
source§fn command_name(&self) -> Option<&'static str>
fn command_name(&self) -> Option<&'static str>
Returns the name of a parsed command, if present. Read more
source§fn help_requested(&self) -> bool
fn help_requested(&self) -> bool
Returns whether the user supplied a “help” option to request
usage information about the program or any contained subcommands. Read more
source§fn parse_command<__S: AsRef<str>>(
name: &str,
_parser: &mut Parser<'_, __S>,
) -> Result<Self, Error>
fn parse_command<__S: AsRef<str>>( name: &str, _parser: &mut Parser<'_, __S>, ) -> Result<Self, Error>
Parses options for the named command.
source§fn usage() -> &'static str
fn usage() -> &'static str
Returns a string showing usage and help for each supported option. Read more
source§fn self_usage(&self) -> &'static str
fn self_usage(&self) -> &'static str
Returns a string showing usage and help for this options instance. Read more
source§fn command_list() -> Option<&'static str>
fn command_list() -> Option<&'static str>
Returns a string listing available commands and help text. Read more
source§fn command_usage(_name: &str) -> Option<&'static str>
fn command_usage(_name: &str) -> Option<&'static str>
Returns a usage string for the named command. Read more
source§fn self_command_list(&self) -> Option<&'static str>
fn self_command_list(&self) -> Option<&'static str>
Returns a listing of available commands and help text. Read more
§fn parse_args<S>(args: &[S], style: ParsingStyle) -> Result<Self, Error>
fn parse_args<S>(args: &[S], style: ParsingStyle) -> Result<Self, Error>
Parses arguments received from the command line. Read more
§fn parse_args_or_exit(style: ParsingStyle) -> Selfwhere
Self: Sized,
fn parse_args_or_exit(style: ParsingStyle) -> Selfwhere
Self: Sized,
Parses arguments from the environment. Read more
§fn parse_args_default_or_exit() -> Selfwhere
Self: Sized,
fn parse_args_default_or_exit() -> Selfwhere
Self: Sized,
Parses arguments from the environment, using the default
parsing style. Read more
§fn parse_args_default<S>(args: &[S]) -> Result<Self, Error>
fn parse_args_default<S>(args: &[S]) -> Result<Self, Error>
Parses arguments received from the command line,
using the default parsing style. Read more
Auto Trait Implementations§
impl Freeze for TestGenOptions
impl RefUnwindSafe for TestGenOptions
impl Send for TestGenOptions
impl Sync for TestGenOptions
impl Unpin for TestGenOptions
impl UnwindSafe for TestGenOptions
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