Struct getopts::Opt
[−]
[src]
pub struct Opt {
pub name: Name,
pub hasarg: HasArg,
pub occur: Occur,
pub aliases: Vec<Opt>,
}Unstable (
rustc_private): use the crates.io getopts library instead
A description of a possible option.
Fields
name: Name
Unstable (
rustc_private): use the crates.io getopts library instead
Name of the option
hasarg: HasArg
Unstable (
rustc_private): use the crates.io getopts library instead
Whether it has an argument
occur: Occur
Unstable (
rustc_private): use the crates.io getopts library instead
How often it can occur
aliases: Vec<Opt>
Unstable (
rustc_private): use the crates.io getopts library instead
Which options it aliases
Trait Implementations
Derived Implementations
impl Debug for Opt[src]
impl Eq for Opt[src]
impl PartialEq for Opt[src]
fn eq(&self, __arg_0: &Opt) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Opt) -> bool
This method tests for !=.
impl Clone for Opt[src]
fn clone(&self) -> Opt
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more