Enum noodles_vcf::header::record::value::map::TryFromFieldsError
source · [−]pub enum TryFromFieldsError {
MissingField(&'static str),
DuplicateTag,
InvalidValue(&'static str),
NumberMismatch,
TypeMismatch,
}
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
The actual number does not match the expected number in the reserved definition.
TypeMismatch
The actual type does not match the expected type in the reserved definition.
Trait Implementations
sourceimpl Clone for TryFromFieldsError
impl Clone for TryFromFieldsError
sourcefn clone(&self) -> TryFromFieldsError
fn clone(&self) -> TryFromFieldsError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TryFromFieldsError
impl Debug for TryFromFieldsError
sourceimpl Display for TryFromFieldsError
impl Display for TryFromFieldsError
sourceimpl Error for TryFromFieldsError
impl Error for TryFromFieldsError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialEq<TryFromFieldsError> for TryFromFieldsError
impl PartialEq<TryFromFieldsError> for TryFromFieldsError
sourcefn eq(&self, other: &TryFromFieldsError) -> bool
fn eq(&self, other: &TryFromFieldsError) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.