pub enum LibsaisError {
InvalidInput,
OutOfMemory,
UnknownError,
}
Expand description
The error type of this crate, used for all functions that run a libsais
algorithm.
Variants§
InvalidInput
Corresponds to the error code -1
of the C library.
OutOfMemory
Corresponds to the error code -2
of the C library.
UnknownError
Corresponds to an unexpected error code other than 0
for success, -1
and -2
.
You should hopefully never encounter this.
Trait Implementations§
Source§impl Clone for LibsaisError
impl Clone for LibsaisError
Source§fn clone(&self) -> LibsaisError
fn clone(&self) -> LibsaisError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LibsaisError
impl Debug for LibsaisError
Source§impl Display for LibsaisError
impl Display for LibsaisError
Source§impl Error for LibsaisError
impl Error for LibsaisError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for LibsaisError
impl PartialEq for LibsaisError
impl Copy for LibsaisError
impl Eq for LibsaisError
impl StructuralPartialEq for LibsaisError
Auto Trait Implementations§
impl Freeze for LibsaisError
impl RefUnwindSafe for LibsaisError
impl Send for LibsaisError
impl Sync for LibsaisError
impl Unpin for LibsaisError
impl UnwindSafe for LibsaisError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more