pub enum SampleErrorKind {
InvalidSampleNumber,
SampleNotFound {
sample_number: usize,
},
IoError(Error),
JsonError(Error),
}
Expand description
Types of errors that can occur during the extraction of assignments.
Variants§
InvalidSampleNumber
Indicates the sample number is invalid. All sample numbers must be greater than 0.
SampleNotFound
Indicates the sample number was not found in the file. The last sample number is provided.
IoError(Error)
Wrapper for IO errors.
JsonError(Error)
Wrapper for JSON errors.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SampleErrorKind
impl !RefUnwindSafe for SampleErrorKind
impl Send for SampleErrorKind
impl Sync for SampleErrorKind
impl Unpin for SampleErrorKind
impl !UnwindSafe for SampleErrorKind
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