Trait borked::BorkWith[][src]

pub trait BorkWith<T> {
    fn bork_with(self, e: Box<dyn BorkChain>) -> Result<T, Box<dyn BorkChain>>;
}
Expand description

Trait to Wrap Errors with BorkChain Errors. This is implemented by this crate for most types that would concievably need it, and should not need to be implemented explicitly in most cases.

Required methods

Translates a result from arbitrary type, to a result of type BorkChain, where the original error (if any) is set as the cause of the BorkChain.

Implementations on Foreign Types

For wrapping Result<_, Std::Err>

For wrapping other Borks

Implementors