Struct args::ArgsError [] [src]

pub struct ArgsError {
    // some fields omitted
}

An implementation of Error which may or may not include a scope and/or usage message.

Methods

impl ArgsError
[src]

fn new(scope: &str, msg: &str) -> ArgsError

Creates a new ArgsError with the provided scope and msg. If scope is an empty string (i.e. "") it will be ignored.

fn new_with_usage(scope: &str, msg: &str, usage: &str) -> ArgsError

Creates a new ArgsError with the provided scope, msg and usage message. If either scope or usage are an empty string (i.e. "") they will be ignored.

Trait Implementations

impl Debug for ArgsError
[src]

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

Formats the value using the given formatter.

impl Display for ArgsError
[src]

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

Formats the value using the given formatter.

impl Error for ArgsError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

The lower-level cause of this error, if any. Read more