Enum getopts::Name [] [src]

pub enum Name {
    Long(String),
    Short(char),
}
🔬 This is a nightly-only experimental API. (rustc_private)

use the crates.io getopts library instead

Name of an option. Either a string or a single char.

Variants

🔬 This is a nightly-only experimental API. (rustc_private)

use the crates.io getopts library instead

A string representing the long name of an option. For example: "help"

🔬 This is a nightly-only experimental API. (rustc_private)

use the crates.io getopts library instead

A char representing the short name of an option. For example: 'h'

Trait Implementations

impl Clone for Name
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Name
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Name
[src]

impl Debug for Name
[src]

Formats the value using the given formatter.