You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something to easily delegate the Error trait's source and backtrace methods and the Display impl to a field. This could be useful for hiding error variants from a library's public error type.
use thiserror::Error;#[derive(Error,Debug)]#[error(transparent)]// <--pubstructError(ErrorKind);#[derive(Error,Debug)]enumErrorKind{#[error("...")]E0,#[error("...")]E1(#[source] io::Error),}
The text was updated successfully, but these errors were encountered:
Something to easily delegate the Error trait's source and backtrace methods and the Display impl to a field. This could be useful for hiding error variants from a library's public error type.
The text was updated successfully, but these errors were encountered: