Trait phollaits::ToIOResult[][src]

pub trait ToIOResult<T> {
    fn to_io_result(self) -> Result<T>;
}

Required methods

method to convert the underlying type to a std::io::Result.

Implementations on Foreign Types

Example

extern crate phollaits;
use phollaits::*;
use std::io;

fn main() -> io::Result<()> {
	let a = Some(1);
	println!("{:?}", a.to_io_result()?);
	Ok(())
}

Example

extern crate phollaits;
use phollaits::*;
use std::io;

fn main() -> io::Result<()> {
	let a = Some(1);
	println!("{:?}", a.to_io_result()?);
	Ok(())
}

Implementors