fn write_msg(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        match self.kind {
            ErrorKind::Void => write!(f, "Error"),
            ErrorKind::ApiCall(ref res, ref fn_name) => write!(f, "Vulkan API ({}) call result: {:?}", fn_name, res),
            ErrorKind::Nul(ref err) => write!(f, "{}", err.description()),
            ErrorKind::Io(ref err) => write!(f, "{}", err.description()),
            ErrorKind::FromUtf8Error(ref err) => write!(f, "{}", err.description()),
            ErrorKind::IntoStringError(ref err) => write!(f, "{}", err.description()),
            ErrorKind::FromBytesWithNulError(ref err) => write!(f, "{}", err.description()),
            ErrorKind::String(ref desc) => write!(f, "{}", desc),
            ErrorKind::UnspecifiedDimensions => write!(f, "Cannot convert to a valid set of \
                dimensions. Please specify some dimensions."),
        }
    }
/// Writes the error message for this error to a formatter.
Writes the error message for this error to a formatter.
Writes the error message for this error to a formatter .
fn write_msg(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        match self.kind {
            ErrorKind::Void => write!(f, "Error"),
            ErrorKind::ApiCall(ref res, ref fn_name) => write!(f, "Vulkan API ({}) call result: {:?}", fn_name, res),
            ErrorKind::Nul(ref err) => write!(f, "{}", err.description()),
            ErrorKind::Io(ref err) => write!(f, "{}", err.description()),
            ErrorKind::FromUtf8Error(ref err) => write!(f, "{}", err.description()),
            ErrorKind::IntoStringError(ref err) => write!(f, "{}", err.description()),
            ErrorKind::FromBytesWithNulError(ref err) => write!(f, "{}", err.description()),
            ErrorKind::String(ref desc) => write!(f, "{}", desc),
            ErrorKind::UnspecifiedDimensions => write!(f, "Cannot convert to a valid set of \
                dimensions. Please specify some dimensions."),
        }
    }
fn write_msg ( & self , f : & mut :: std :: fmt :: Formatter ) -> :: std :: fmt :: Result { match self . kind { ErrorKind :: Void => write ! ( f " " ) , ErrorKind :: ApiCall ( ref res , ref fn_name ) => write ! ( f " " fn_name res ) , ErrorKind :: Nul ( ref err ) => write ! ( f " " err description ( ) ) , ErrorKind :: Io ( ref err ) => write ! ( f " " err description ( ) ) , ErrorKind :: FromUtf8Error ( ref err ) => write ! ( f " " err description ( ) ) , ErrorKind :: IntoStringError ( ref err ) => write ! ( f " " err description ( ) ) , ErrorKind :: FromBytesWithNulError ( ref err ) => write ! ( f " " err description ( ) ) , ErrorKind :: String ( ref desc ) => write ! ( f " " desc ) , ErrorKind :: UnspecifiedDimensions => write ! ( f " \
 " ) , } }
Writes the error message for this error to a formatter.
Writes the error message for this error to a formatter .
&self
f
&mut ::std::fmt::Formatter
&self
f
&mut ::std::fmt::Formatter