pub fn to_str_pair(self) -> (&'static str, Option<&'static str>) {
        match self {
            Error::Other(e) => ("other error", Some(e)),
            Error::IO => ("io error", None),
            Error::Signature(e) => ("signature error", Some(e)),
            Error::Read(e) => ("read error", Some(e)),
            Error::Core(e) => ("error in core", Some(e.to_str())),
            Error::Win32(e) => ("error in win32", Some(e.to_str())),
            Error::PE(e) => ("error handling pe", Some(e.to_str())),
        }
    }
/// Returns a tuple representing the error description and its string value.
Returns a tuple representing the error description and its string value.
Returns a tuple representing the error description and its string value .
pub fn to_str_pair(self) -> (&'static str, Option<&'static str>) {
        match self {
            Error::Other(e) => ("other error", Some(e)),
            Error::IO => ("io error", None),
            Error::Signature(e) => ("signature error", Some(e)),
            Error::Read(e) => ("read error", Some(e)),
            Error::Core(e) => ("error in core", Some(e.to_str())),
            Error::Win32(e) => ("error in win32", Some(e.to_str())),
            Error::PE(e) => ("error handling pe", Some(e.to_str())),
        }
    }
pub fn to_str_pair ( self ) -> ( & ' static str , Option < & ' static str > ) { match self { Error :: Other ( e ) => ( " " , Some ( e ) ) , Error :: IO => ( " " , None ) , Error :: Signature ( e ) => ( " " , Some ( e ) ) , Error :: Read ( e ) => ( " " , Some ( e ) ) , Error :: Core ( e ) => ( " " , Some ( e . to_str ( ) ) ) , Error :: Win32 ( e ) => ( " " , Some ( e . to_str ( ) ) ) , Error :: PE ( e ) => ( " " , Some ( e . to_str ( ) ) ) , } }
Returns a tuple representing the error description and its string value.
Returns a tuple representing the error description and its string value .
self
self