[−][src]Enum seq_io::fastx::ErrorKind
The kind of error. Currently it has the same options as seq_io::fastq::ErrorKind
.
Variants
Io(Error)
std::io::Error
Invalid start byte encountered (expected >
or @
, depending on the format).
This error occurs either at the beginning of the file if the first byte of the
first non-empty line does matches neither of the two possible characters,
required for either FASTA or FASTQ.
In later records, this error will be returned if the start byte of a record
does not match the expected byte chosen at the beginning.
Fields of InvalidStart
pos: ErrorPosition
Position, where the error occurred. ErrorPosition::position()
returns the record start (same as ErrorPosition::record_position()
),
ErrorPosition::error_offset()
will return None
.
found: u8
Byte found instead.
Invalid separator byte encountered (expected +
). This error cannot
occur with multi-line FASTQ.
Fields of InvalidSep
pos: ErrorPosition
Position, where the error occurred. ErrorPosition::position()
returns the position of the byte that should be +
.
found: Option<u8>
Byte found instead (Some
if any, otherwise None
)
Truncated record found at the end of the input.
Fields of UnexpectedEnd
pos: ErrorPosition
Position, where the error occurred. ErrorPosition::position()
returns a Position
referring to the last byte of the file.
ErrorPosition::record_id()
only returns an ID if the
unexpected end did not occur in within the header line. In this
case, the ID may be truncated.
Sequence and qualitiy lengths found to be different.
Fields of UnequalLengths
pos: ErrorPosition
Position, where the error occurred. ErrorPosition::position()
returns the record start (same as ErrorPosition::record_position()
),
ErrorPosition::error_offset()
will return None
.
The position will be None
if the error occurred in a call to
BaseRecord::check_lengths
.
seq: usize
Length of sequence
qual: usize
Length of quality information
Size limit of buffer was reached, which happens if policy::BufPolicy::grow_to()
returned
None
. This does not happen with the default DoubleUntil
policy,
since this policy does not impose a memory limit.
Implementations
impl ErrorKind
[src]
pub fn position(&self) -> Option<&ErrorPosition>
[src]
Returns the position for this error, if one exists.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
const ALIGN: usize
type Init = T
The type for initializers.
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,