pub fn as_str(&self) -> &str {
        match *self {
            Error::Command(..) => "Command",
            Error::Generic(..) => "Generic",
            Error::Io(..) => "Io",
            Error::Manifest(..) => "Manifest",
            Error::Mustache(..) => "Mustache",
            Error::Toml(..) => "TOML",
            Error::Version(..) => "Version",
            Error::Xml(..) => "XML",
            Error::XPath(..) => "XPath",
        }
    }
/// Extracts a short, single word representation of the error.
///
/// The `std::error::Error::description` method is "soft-deprecated"
/// according to the Rust stdlib documentation. It is recommended to use the
/// `std::fmt::Display` implementation for a "description" string. However,
/// there is already a `std::fmt::Display` implemenation for this error
/// type, and it is nice to have a short, single word representation for
/// nicely formatting errors to humans. This method maintains the error
/// message formatting.
Extracts a short, single word representation of the error.
Extracts a short single word representation of the error .
pub fn as_str(&self) -> &str {
        match *self {
            Error::Command(..) => "Command",
            Error::Generic(..) => "Generic",
            Error::Io(..) => "Io",
            Error::Manifest(..) => "Manifest",
            Error::Mustache(..) => "Mustache",
            Error::Toml(..) => "TOML",
            Error::Version(..) => "Version",
            Error::Xml(..) => "XML",
            Error::XPath(..) => "XPath",
        }
    }
pub fn as_str ( & self ) -> & str { match * self { Error :: Command ( .. ) => " " , Error :: Generic ( .. ) => " " , Error :: Io ( .. ) => " " , Error :: Manifest ( .. ) => " " , Error :: Mustache ( .. ) => " " , Error :: Toml ( .. ) => " " , Error :: Version ( .. ) => " " , Error :: Xml ( .. ) => " " , Error :: XPath ( .. ) => " " , } }
Extracts a short, single word representation of the error.
Extracts a short single word representation of the error .
&self