Struct room4doom::CLIOptions
source · pub struct CLIOptions {Show 20 fields
pub verbose: LevelFilter,
pub iwad: String,
pub pwad: Vec<String>,
pub width: u32,
pub height: u32,
pub fullscreen: Option<bool>,
pub double: Option<bool>,
pub no_monsters: bool,
pub skill: Skill,
pub episode: i32,
pub map: i32,
pub help: bool,
pub palette_test: bool,
pub image_test: Option<String>,
pub image_cycle_test: bool,
pub texture_test: bool,
pub flats_test: bool,
pub sprites_test: bool,
pub rendering: Option<RenderType>,
pub shader: Option<Shaders>,
}
Expand description
CLI options for the game-exe
Fields§
§verbose: LevelFilter
§iwad: String
§pwad: Vec<String>
§width: u32
§height: u32
§fullscreen: Option<bool>
§double: Option<bool>
§no_monsters: bool
§skill: Skill
§episode: i32
§map: i32
§help: bool
§palette_test: bool
§image_test: Option<String>
§image_cycle_test: bool
§texture_test: bool
§flats_test: bool
§sprites_test: bool
§rendering: Option<RenderType>
§shader: Option<Shaders>
Trait Implementations§
source§impl Clone for CLIOptions
impl Clone for CLIOptions
source§fn clone(&self) -> CLIOptions
fn clone(&self) -> CLIOptions
Returns a copy 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 CLIOptions
impl Debug for CLIOptions
source§impl From<CLIOptions> for DoomOptions
impl From<CLIOptions> for DoomOptions
source§fn from(g: CLIOptions) -> Self
fn from(g: CLIOptions) -> Self
Converts to this type from the input type.
source§impl Options for CLIOptions
impl Options for CLIOptions
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 RefUnwindSafe for CLIOptions
impl Send for CLIOptions
impl Sync for CLIOptions
impl Unpin for CLIOptions
impl UnwindSafe for CLIOptions
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