pub enum Error {
LengthError,
NotPermutation,
IncorrectDistrType,
ParseError,
Io(Error),
IncorrectProblemInstance,
IncorrectPopulation,
}Expand description
Contains all errors permu-rs functions can return.
Variants§
LengthError
Error returned when the shape of the given vector was not the expected.
NotPermutation
Error to return when a Permutation is not an actual permutation.
IncorrectDistrType
Error to return when an incorrect Distribution type is given.
ParseError
Error to return when a parsing error occurs.
Io(Error)
IO error containing a std::io::Error that is caused.
IncorrectProblemInstance
Error to return when an incorrect problem instance is given.
IncorrectPopulation
Error to return when an incorrect Population is given.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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