Struct pencil::UserError [] [src]

pub struct UserError {
    pub desc: String,
}

The Pencil User Error type.

Fields

desc: String

Methods

impl UserError
[src]

fn new<T>(desc: T) -> UserError where T: AsRef<str>

Trait Implementations

impl Debug for UserError
[src]

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

Formats the value using the given formatter.

impl Clone for UserError
[src]

fn clone(&self) -> UserError

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

impl Display for UserError
[src]

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

Formats the value using the given formatter.

impl Error for UserError
[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.