Enum noodles_vcf::header::format::TryFromRecordError [−][src]
pub enum TryFromRecordError {
InvalidRecord,
MissingField(Key),
InvalidId(ParseError),
InvalidNumber(ParseError),
InvalidType(ParseError),
InvalidIdx(ParseIntError),
NumberMismatch(Number, Number),
TypeMismatch(Type, Type),
}
Expand description
An error returned when a generic VCF header record fails to convert to a genotype format header record.
Variants
The record is invalid.
MissingField(Key)
A required field is missing.
Tuple Fields of MissingField
0: Key
InvalidId(ParseError)
The ID is invalid.
Tuple Fields of InvalidId
0: ParseError
The number is invalid.
InvalidType(ParseError)
The type is invalid.
Tuple Fields of InvalidType
0: ParseError
InvalidIdx(ParseIntError)
The index (IDX
) is invalid.
Tuple Fields of InvalidIdx
The number for the given ID does not match the number in the reserved definition.
The type for the given ID does not match the type in the reserved definition.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TryFromRecordError
impl Send for TryFromRecordError
impl Sync for TryFromRecordError
impl Unpin for TryFromRecordError
impl UnwindSafe for TryFromRecordError
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.