Struct apint::Error [] [src]

pub struct Error { /* fields omitted */ }

Represents an error that may occure upon using the ApInt library.

All errors have a unique kind which also stores extra information for error reporting. Besides that an Error also stores a message and an optional additional annotation.

Methods

impl Error
[src]

Public getters for Error. ===========================================================================

[src]

Returns a reference to the kind of this Error.

[src]

Returns the error message description of this Error.

[src]

Returns the optional annotation of this Error.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Error
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Error
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Error
[src]

impl Hash for Error
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

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

[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 ...

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error