Trait sst::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.

Object Safety§

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§