pub enum TukeyError {
TooFewGroups,
TooManyGroups(usize),
EmptyGroup(usize),
InsufficientDf,
UnsupportedAlpha(f64),
ZeroVariance,
GroupTooSmall(usize),
ControlGroupOutOfRange(usize),
TooManyTreatments(usize),
IoError(String),
ParseError {
line: usize,
column: usize,
value: String,
},
EmptyCsv,
}Expand description
Errors that can occur during Tukey test operations.
Variants§
TooFewGroups
Fewer than 2 groups were provided.
TooManyGroups(usize)
More groups than the lookup table supports (max 10).
EmptyGroup(usize)
A group contained no observations.
InsufficientDf
Not enough degrees of freedom (need at least 1).
UnsupportedAlpha(f64)
Alpha level not supported — use 0.05 or 0.01.
ZeroVariance
Within-group variance is zero (all observations identical).
GroupTooSmall(usize)
A group needs at least 2 observations (for per-group variance).
ControlGroupOutOfRange(usize)
Control group index is out of range.
TooManyTreatments(usize)
Too many treatment groups for the Dunnett table (max 9).
IoError(String)
I/O error when reading data.
ParseError
Failed to parse a value in CSV data.
EmptyCsv
CSV data has no columns.
Trait Implementations§
Source§impl Clone for TukeyError
impl Clone for TukeyError
Source§fn clone(&self) -> TukeyError
fn clone(&self) -> TukeyError
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 TukeyError
impl Debug for TukeyError
Source§impl Display for TukeyError
impl Display for TukeyError
Source§impl Error for TukeyError
impl Error for TukeyError
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 TukeyError
impl PartialEq for TukeyError
impl StructuralPartialEq for TukeyError
Auto Trait Implementations§
impl Freeze for TukeyError
impl RefUnwindSafe for TukeyError
impl Send for TukeyError
impl Sync for TukeyError
impl Unpin for TukeyError
impl UnsafeUnpin for TukeyError
impl UnwindSafe for TukeyError
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