Trait phollaits::ToIOResult [−][src]
pub trait ToIOResult<T> { fn to_io_result(self) -> Result<T>; }
Required methods
fn to_io_result(self) -> Result<T>
[src]
fn to_io_result(self) -> Result<T>
[src]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(()) }