Struct voodoo::Error
[−]
[src]
pub struct Error { pub kind: ErrorKind, pub cause: Option<Box<Error>>, }
An Error.
Fields
kind: ErrorKind
cause: Option<Box<Error>>
Methods
impl Error
[src]
pub fn unspecified_dimensions() -> Error
[src]
Returns an Error
with the UnspecifiedDimensions
kind variant.
pub fn chain<E: Into<Error>>(self, err: E) -> Self
[src]
Creates a new error with this error as its cause.
pub fn kind(&self) -> &ErrorKind
[src]
Returns the error variant and contents.
pub fn cause(&self) -> Option<&Error>
[src]
Returns the immediate cause of this error (e.g. the next error in the chain).
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl StdError for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
[src]
The lower-level cause of this error, if any. Read more
impl From<()> for Error
[src]
impl From<String> for Error
[src]
impl From<Error> for String
[src]
impl<'a> From<&'a str> for Error
[src]
impl From<NulError> for Error
[src]
impl From<Error> for Error
[src]
impl From<FromUtf8Error> for Error
[src]
fn from(err: FromUtf8Error) -> Self
[src]
Performs the conversion.
impl From<IntoStringError> for Error
[src]
fn from(err: IntoStringError) -> Self
[src]
Performs the conversion.
impl From<FromBytesWithNulError> for Error
[src]
fn from(err: FromBytesWithNulError) -> Self
[src]
Performs the conversion.