Type Definition apint::Result[][src]

type Result<T> = Result<T, Error>;

The Result type used in ApInt.

Trait Implementations

impl<T> Into<Result<T>> for Error
[src]

Converts an Error into a Result<T, Error>.

This might be useful to prevent some parentheses spams because it replaces Err(my_error) with my_error.into().

On the other hand it might be an abuse of the trait ...