RD65M7RC2QYSEEW6JJGAPGB4XB6MCXKMDNHA3EU3WECBOUYNLDVQC
EXRAFG37562NH775A4LDPP5FNKXLPLIZSJ3FCOBINUDKRFBJHCXAC
CITEDKPB6MKVZUEYEDE5ZKTNVY35HCOAXKDPYG7YLLEOVFNMSRXQC
3LI5FAF5ULXOWBMTG4XCUOMUPVROSFDY6FWGE574OH4JGPMOPNVAC
UM7DFUYLW4HSMBUDZY3R6ZNJRSX2E75C4DYV3MJAU57EUCGE6JLAC
W655S25G7CGI4XOZ2PKITKTH26VJ4QMZFRV2RPYNI4KIUJOIGVMAC
/// View type as an error object.pub trait AsError {
/// View type as an error object.
pub trait AsError {
/// View error as a `&dyn std::error::Error`.pub trait AsDynError {
/// View error as a `&dyn std::error::Error`.
pub trait AsDynError {
fn as_error(&self) -> &(dyn StdError + Send + Sync + 'static);
fn as_dyn_error(&self) -> &(dyn StdError + Send + Sync + 'static);
impl<T> AsError for T
impl<T> AsDynError for T
fn as_error(&self) -> &(dyn StdError + Send + Sync + 'static) {
fn as_dyn_error(&self) -> &(dyn StdError + Send + Sync + 'static) {
impl AsError for dyn StdError + Send + Sync + 'static { fn as_error(&self) -> &(dyn StdError + Send + Sync + 'static) {
impl AsError for dyn StdError + Send + Sync + 'static {
impl AsDynError for dyn StdError + Send + Sync + 'static { fn as_dyn_error(&self) -> &(dyn StdError + Send + Sync + 'static) {
impl AsDynError for dyn StdError + Send + Sync + 'static {
impl AsError for Error { fn as_error(&self) -> &(dyn StdError + Send + Sync + 'static) {
impl AsError for Error {
impl AsDynError for Error { fn as_dyn_error(&self) -> &(dyn StdError + Send + Sync + 'static) {
impl AsDynError for Error {
pub fn as_error(&self) -> &(dyn StdError + Send + Sync + 'static) {
pub fn as_dyn_error(&self) -> &(dyn StdError + Send + Sync + 'static) {
pub fn as_error_mut(&mut self) -> &mut (dyn StdError + Send + Sync + 'static) {
pub fn as_dyn_error_mut(&mut self) -> &mut (dyn StdError + Send + Sync + 'static) {
mod as_error;
mod as_dyn_error;
pub use crate::as_error::AsError;
pub use crate::as_dyn_error::AsDynError;