Trait thiserror_ext::AsDyn
source · pub trait AsDyn: Sealed {
// Required method
fn as_dyn(&self) -> &(dyn Error + '_);
}
Expand description
Extension trait for std::error::Error
that casts the error to
a trait object.
pub trait AsDyn: Sealed {
// Required method
fn as_dyn(&self) -> &(dyn Error + '_);
}
Extension trait for std::error::Error
that casts the error to
a trait object.