Enum shawshank::Error
[−]
[src]
pub enum Error { InvalidId, FromIdFailed, ToIdFailed, IdOverflow, }
Errors that may occur when using a Prison
.
Variants
InvalidId
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
.
FromIdFailed
Could not convert an ID type to a Vec
index.
ToIdFailed
Could not convert a Vec
index to an ID type.
IdOverflow
The ID type cannot uniquely represent any more items.
For instance, if I = u8
, and there are 256 items in a Prison
,
further calls to intern
will fail with this error.
Trait Implementations
impl Eq for Error
[src]
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Clone for Error
[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more