pub enum KapError {
BadCount(usize),
ShapeMismatch {
matrix: usize,
partite: usize,
expected: usize,
actual: usize,
},
BadMatching,
IncompleteInitial {
expected: usize,
actual: usize,
},
ForbiddenInitial,
TooManyVertices(usize),
Lap(LapError),
BadOption(&'static str),
Unsupported(&'static str),
}Expand description
Invalid input or failure of a constituent LAP.
Variants§
BadCount(usize)
Matrix count does not describe 2 through 64 partites.
ShapeMismatch
A matrix dimension disagrees with a previously seen partite size.
Fields
BadMatching
Invalid part positions, vertex indices, or repeated matching vertices.
IncompleteInitial
The supplied initial solution does not have max(partite sizes) nodes.
Fields
ForbiddenInitial
The supplied gated initial solution contains a forbidden pair.
TooManyVertices(usize)
A partite is too large for u32 vertex identifiers.
Lap(LapError)
Constituent LAP error.
BadOption(&'static str)
An option has an invalid value.
Unsupported(&'static str)
The request exceeds a documented limit of the algorithm.
Trait Implementations§
impl Eq for KapError
Source§impl Error for KapError
impl Error for KapError
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()
impl StructuralPartialEq for KapError
Auto Trait Implementations§
impl Forget for KapError
impl Freeze for KapError
impl Move for KapError
impl RefUnwindSafe for KapError
impl Send for KapError
impl Sync for KapError
impl Unpin for KapError
impl UnsafeUnpin for KapError
impl UnwindSafe for KapError
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