[−][src]Struct tiny_fail::Fail
The failure type.
Example
use std::fs::File; use std::io::{BufRead, BufReader}; use tiny_fail::Fail; fn foo() -> Result<(), Fail> { let f = File::open("not_exists.txt")?; let r = BufReader::new(f); for line in r.lines() { let num: f64 = line?.parse()?; println!("{:.2}", num); } Ok(()) }
Methods
impl Fail
[src]
Trait Implementations
impl Debug for Fail
[src]
impl Display for Fail
[src]
impl<E: 'static + Send + Sync + Error> From<E> for Fail
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Fail
impl Send for Fail
impl Sync for Fail
impl Unpin for Fail
impl !UnwindSafe for Fail
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<!> for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,