[][src]Trait quantum_random::prelude::Throwable

pub trait Throwable<'a, E: Error> {
    fn throw<U, T: ToString + Display>(input: T) -> Result<U, E>;
fn printf(self) -> Self; }

Allows easy throwing of errors

Required methods

fn throw<U, T: ToString + Display>(input: T) -> Result<U, E>

Inner type Throws a returnable error

fn printf(self) -> Self

Prints the error

Loading content...

Implementors

impl<'a> Throwable<'a, Box<StringedError<'a, String>>> for QuantumError<'a>[src]

Loading content...