Enum shawshank::Error [] [src]

pub enum Error {
    InvalidId,
    FromIdFailed,
    ToIdFailed,
    IdOverflow,
}

Errors that may occur when using an ArenaSet.

Variants

The ID does not represent an interned item. This could mean either that the ID has never been returned from a call to intern; or was subsequently passed to disintern.

Could not convert an ID type to a Vec index.

Could not convert a Vec index to an ID type.

The ID type cannot uniquely represent any more items.

For instance, if I = u8, and there are 256 items in an ArenaSet, further calls to intern will fail with this error.

Trait Implementations

impl Eq for Error
[src]

impl PartialEq for Error
[src]

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

This method tests for !=.

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Error
[src]

impl Debug for Error
[src]

Formats the value using the given formatter.