protoql

Trait IoToZ

Source
pub trait IoToZ<T>: Sized
where Error: Z,
{ // Required methods fn as_z(self) -> Result<T, Error>; fn pretty_unwrap(self) -> T; }
Expand description

IO to Z.

Required Methods§

Source

fn as_z(self) -> Result<T, Error>

Convert the error into the result type.

Source

fn pretty_unwrap(self) -> T

A pretty unwrap method.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T, E: Into<Error>> IoToZ<T> for Result<T, E>

Source§

fn as_z(self) -> Result<T, Error>

Source§

fn pretty_unwrap(self) -> T

Implementors§