Enum noodles::sam::record::ParseError[][src]

pub enum ParseError {
Show 15 variants MissingField(Field), InvalidReadName(ParseError), InvalidFlags(ParseIntError), InvalidReferenceSequenceName(ParseError), InvalidPosition(ParseError), InvalidMappingQuality(ParseIntError), InvalidCigar(ParseError), InvalidMateReferenceSequenceName(ParseError), InvalidMatePosition(ParseError), InvalidTemplateLength(ParseIntError), InvalidSequence(ParseError), SequenceLengthMismatch(u32u32), InvalidQualityScores(ParseError), QualityScoresLengthMismatch(u32u32), InvalidData(ParseError),
}
Expand description

An error returned when a raw SAM record fails to parse.

Variants

MissingField(Field)

A required record field is missing.

Tuple Fields of MissingField

0: Field
InvalidReadName(ParseError)

The record read name is invalid.

Tuple Fields of InvalidReadName

0: ParseError
InvalidFlags(ParseIntError)

The record flags field is invalid.

Tuple Fields of InvalidFlags

0: ParseIntError
InvalidReferenceSequenceName(ParseError)

The record reference sequence name is invalid.

Tuple Fields of InvalidReferenceSequenceName

0: ParseError
InvalidPosition(ParseError)

The record position is invalid.

Tuple Fields of InvalidPosition

0: ParseError
InvalidMappingQuality(ParseIntError)

The record mapping quality is invalid.

Tuple Fields of InvalidMappingQuality

0: ParseIntError
InvalidCigar(ParseError)

The record CIGAR string is invalid.

Tuple Fields of InvalidCigar

0: ParseError
InvalidMateReferenceSequenceName(ParseError)

The record mate reference sequence name is invalid.

Tuple Fields of InvalidMateReferenceSequenceName

0: ParseError
InvalidMatePosition(ParseError)

The record mate position is invalid.

Tuple Fields of InvalidMatePosition

0: ParseError
InvalidTemplateLength(ParseIntError)

The record template length is invalid.

Tuple Fields of InvalidTemplateLength

0: ParseIntError
InvalidSequence(ParseError)

The record sequence is invalid.

Tuple Fields of InvalidSequence

0: ParseError
SequenceLengthMismatch(u32u32)

The sequence length does not match the CIGAR string read length.

Tuple Fields of SequenceLengthMismatch

0: u321: u32
InvalidQualityScores(ParseError)

The record quality score is invalid.

Tuple Fields of InvalidQualityScores

0: ParseError
QualityScoresLengthMismatch(u32u32)

The quality scores length does not match the sequence length.

Tuple Fields of QualityScoresLengthMismatch

0: u321: u32
InvalidData(ParseError)

The record data is invalid.

Tuple Fields of InvalidData

0: ParseError

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.