Enum noodles_vcf::header::record::value::map::TryFromFieldsError
source · pub enum TryFromFieldsError {
MissingField(&'static str),
DuplicateTag,
InvalidValue(&'static str),
NumberMismatch(Number, Number),
TypeMismatch(String, String),
}
Expand description
An error returned when a VCF header map value fails to parse.
Variants§
MissingField(&'static str)
A field is missing.
DuplicateTag
A tag is duplicated.
InvalidValue(&'static str)
A value is invalid.
NumberMismatch(Number, Number)
The actual number does not match the expected number in the reserved definition.
TypeMismatch(String, String)
The actual type does not match the expected type in the reserved definition.
Trait Implementations§
source§impl Clone for TryFromFieldsError
impl Clone for TryFromFieldsError
source§fn clone(&self) -> TryFromFieldsError
fn clone(&self) -> TryFromFieldsError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TryFromFieldsError
impl Debug for TryFromFieldsError
source§impl Display for TryFromFieldsError
impl Display for TryFromFieldsError
source§impl Error for TryFromFieldsError
impl Error for TryFromFieldsError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq<TryFromFieldsError> for TryFromFieldsError
impl PartialEq<TryFromFieldsError> for TryFromFieldsError
source§fn eq(&self, other: &TryFromFieldsError) -> bool
fn eq(&self, other: &TryFromFieldsError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TryFromFieldsError
impl StructuralEq for TryFromFieldsError
impl StructuralPartialEq for TryFromFieldsError
Auto Trait Implementations§
impl RefUnwindSafe for TryFromFieldsError
impl Send for TryFromFieldsError
impl Sync for TryFromFieldsError
impl Unpin for TryFromFieldsError
impl UnwindSafe for TryFromFieldsError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.