Struct pencil::UserError [] [src]

pub struct UserError {
    pub desc: String,
}

The Pencil User Error type.

Fields

desc

Methods

impl UserError

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

Trait Implementations

impl Display for UserError

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

impl Error for UserError

fn description(&self) -> &str

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

Derived Implementations

impl Debug for UserError

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

impl Clone for UserError

fn clone(&self) -> UserError

fn clone_from(&mut self, source: &Self)