Enum opter::Opt [] [src]

pub enum Opt {
    Flag(String),
    Named(NamedOpt),
    Ordinal(String),
    Value(String),
}

Variants

Flag(String)Named(NamedOpt)Ordinal(String)Value(String)

Methods

impl Opt
[src]

fn flag_from_str(name: &str) -> Opt

fn named_from_str(name: &str, value: &str) -> Opt

fn ordinal_from_str(value: &str) -> Opt

fn value_from_str(value: &str) -> Opt

Trait Implementations

impl Debug for Opt
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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 !=.