pub enum Error {
WeightArrayLargerValueArray,
Unreachable {
line: u32,
file: &'static str,
},
StdIo(Error),
RandWeightedError(WeightedError),
FastaBuilderError(FastaBuilderError),
FastqBuilderError(FastqBuilderError),
VcfBuilderError(VcfBuilderError),
VcfRecordBuilderError(RecordBuilderError),
VcfHeaderBuilderError(HeaderBuilderError),
SequenceBuilderError(SequenceBuilderError),
QualityBuilderError(QualityBuilderError),
}Expand description
Enum to manage error
Variants§
WeightArrayLargerValueArray
WeightedDistribution is larger than value
Unreachable
unreachable
StdIo(Error)
std::io::Error error
RandWeightedError(WeightedError)
rand::distributions::weighted::WeightedError
FastaBuilderError(FastaBuilderError)
biotest::format::fasta::FastaBuilderError
FastqBuilderError(FastqBuilderError)
crate::format::fastq::FastqBuilderError
VcfBuilderError(VcfBuilderError)
crate::format::vcf::VcfBuilderError
VcfRecordBuilderError(RecordBuilderError)
crate::format::vcf::record::RecordBuilderError
VcfHeaderBuilderError(HeaderBuilderError)
crate::format::vcf::header::HeaderBuilderError
SequenceBuilderError(SequenceBuilderError)
crate::format::sequence::SequenceBuilderError
QualityBuilderError(QualityBuilderError)
crate::format::quality::QualityBuilderError
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 From<FastaBuilderError> for Error
impl From<FastaBuilderError> for Error
Source§fn from(source: FastaBuilderError) -> Self
fn from(source: FastaBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<FastqBuilderError> for Error
impl From<FastqBuilderError> for Error
Source§fn from(source: FastqBuilderError) -> Self
fn from(source: FastqBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<HeaderBuilderError> for Error
impl From<HeaderBuilderError> for Error
Source§fn from(source: HeaderBuilderError) -> Self
fn from(source: HeaderBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<QualityBuilderError> for Error
impl From<QualityBuilderError> for Error
Source§fn from(source: QualityBuilderError) -> Self
fn from(source: QualityBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<RecordBuilderError> for Error
impl From<RecordBuilderError> for Error
Source§fn from(source: RecordBuilderError) -> Self
fn from(source: RecordBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<SequenceBuilderError> for Error
impl From<SequenceBuilderError> for Error
Source§fn from(source: SequenceBuilderError) -> Self
fn from(source: SequenceBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<VcfBuilderError> for Error
impl From<VcfBuilderError> for Error
Source§fn from(source: VcfBuilderError) -> Self
fn from(source: VcfBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<WeightedError> for Error
impl From<WeightedError> for Error
Source§fn from(source: WeightedError) -> Self
fn from(source: WeightedError) -> Self
Converts to this type from the input type.
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