pub enum AssociationError {
EmptyInput,
NoItems,
RaggedRows,
InvalidSupport,
InvalidThreshold,
}Expand description
Errors that prevent association mining over a transaction matrix.
Returned (never panicked) so callers stay clear of the crate’s unwrap/panic
lint gate and can surface a clean diagnostic.
Variants§
EmptyInput
The transaction matrix had no rows, so no support can be measured.
NoItems
The matrix had rows but no item columns, so there is nothing to mine.
RaggedRows
The rows had differing item counts (a ragged matrix), so columns are undefined.
InvalidSupport
The minimum support was not in the open-closed range (0, 1], so the
frequent-set threshold would be ill-defined.
InvalidThreshold
The minimum metric threshold was not finite, so the rule filter would be ill-defined.
Trait Implementations§
Source§impl Clone for AssociationError
impl Clone for AssociationError
Source§fn clone(&self) -> AssociationError
fn clone(&self) -> AssociationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AssociationError
impl Debug for AssociationError
Source§impl Display for AssociationError
impl Display for AssociationError
impl Eq for AssociationError
Source§impl Error for AssociationError
impl Error for AssociationError
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 AssociationError
impl PartialEq for AssociationError
Source§fn eq(&self, other: &AssociationError) -> bool
fn eq(&self, other: &AssociationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AssociationError
Auto Trait Implementations§
impl Freeze for AssociationError
impl RefUnwindSafe for AssociationError
impl Send for AssociationError
impl Sync for AssociationError
impl Unpin for AssociationError
impl UnsafeUnpin for AssociationError
impl UnwindSafe for AssociationError
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