pub enum ReadStructureError {
Show 15 variants
Example,
InvalidReadStructure(String),
MismatchingBasesAndQualsLen {
bases_len: usize,
quals_len: usize,
},
ReadStructureMissingLengthInformation(ErrorMessageParts),
ReadStructureMissingOperator(ErrorMessageParts),
ReadStructureHadUnknownType(ErrorMessageParts),
ReadStructureContainsZeroElements,
ReadStructureMultipleIndefiniteLengthSegments(ReadSegment),
ReadTooShort {
read_len: usize,
required: usize,
},
ReadTooLong {
read_len: usize,
expected: usize,
},
ReadSegmentTooShort(String),
ReadSegmentMultipleSegments(String),
ReadSegmentLengthZero(ErrorMessageParts),
ReadSegmentTypeInvalid(char),
ReadSegmentTypeStringInvalid(String),
}Variants§
Example
InvalidReadStructure(String)
MismatchingBasesAndQualsLen
ReadStructureMissingLengthInformation(ErrorMessageParts)
ReadStructureMissingOperator(ErrorMessageParts)
ReadStructureHadUnknownType(ErrorMessageParts)
ReadStructureContainsZeroElements
ReadStructureMultipleIndefiniteLengthSegments(ReadSegment)
ReadTooShort
The read is too short to accommodate every fixed-length segment in the read
structure. required is the sum of all fixed segment lengths, plus 1 if the
structure also has an indefinite (+) segment (which must be at least one base).
ReadTooLong
A fixed-length read structure was handed a read of the wrong length. Fixed structures require exact-length reads; anything longer is almost always a caller bug (wrong structure for this data, or a stray adapter still attached).
ReadSegmentTooShort(String)
ReadSegmentMultipleSegments(String)
ReadSegmentLengthZero(ErrorMessageParts)
ReadSegmentTypeInvalid(char)
ReadSegmentTypeStringInvalid(String)
Trait Implementations§
Source§impl Debug for ReadStructureError
impl Debug for ReadStructureError
Source§impl Display for ReadStructureError
impl Display for ReadStructureError
Source§impl Error for ReadStructureError
impl Error for ReadStructureError
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()
Auto Trait Implementations§
impl Freeze for ReadStructureError
impl RefUnwindSafe for ReadStructureError
impl Send for ReadStructureError
impl Sync for ReadStructureError
impl Unpin for ReadStructureError
impl UnsafeUnpin for ReadStructureError
impl UnwindSafe for ReadStructureError
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