pub struct ManifestOptions { /* private fields */ }Expand description
ManifestOptions provides the options for commandline programs.
Trait Implementations§
Source§impl Clone for ManifestOptions
impl Clone for ManifestOptions
Source§fn clone(&self) -> ManifestOptions
fn clone(&self) -> ManifestOptions
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 CommandLine for ManifestOptions
impl CommandLine for ManifestOptions
Source§fn add_opts(&self, prefix: Option<&str>, opts: &mut Options)
fn add_opts(&self, prefix: Option<&str>, opts: &mut Options)
Add options to the getopts parser.
Source§fn matches(&mut self, prefix: Option<&str>, matches: &Matches)
fn matches(&mut self, prefix: Option<&str>, matches: &Matches)
Assign values to self using the provided getopts matches.
Source§fn canonical_command_line(&self, prefix: Option<&str>) -> Vec<String>
fn canonical_command_line(&self, prefix: Option<&str>) -> Vec<String>
Return the canonical command line for this CommandLine.
Source§fn from_command_line(usage: &str) -> (Self, Vec<String>)
fn from_command_line(usage: &str) -> (Self, Vec<String>)
Parse from the command line. This function will panic if a non-canonical command line is
provided.
Source§fn from_command_line_relaxed(usage: &str) -> (Self, Vec<String>)
fn from_command_line_relaxed(usage: &str) -> (Self, Vec<String>)
Parse from the command line. This function will allow a non-canonical command line to
execute.
Source§fn from_arguments(usage: &str, args: &[&str]) -> (Self, Vec<String>)
fn from_arguments(usage: &str, args: &[&str]) -> (Self, Vec<String>)
Parse from the provided arguments. This function will panic if a non-canonical command
line is provided.
Source§impl Debug for ManifestOptions
impl Debug for ManifestOptions
Source§impl Default for ManifestOptions
impl Default for ManifestOptions
Source§impl PartialEq for ManifestOptions
impl PartialEq for ManifestOptions
impl Eq for ManifestOptions
impl StructuralPartialEq for ManifestOptions
Auto Trait Implementations§
impl Freeze for ManifestOptions
impl RefUnwindSafe for ManifestOptions
impl Send for ManifestOptions
impl Sync for ManifestOptions
impl Unpin for ManifestOptions
impl UnwindSafe for ManifestOptions
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