pub enum ErrorMode {
Strict,
Lenient,
Silent,
}Expand description
Error handling mode.
Controls how the parser handles common input errors.
Variants§
Strict
Reject all non-standard input.
Any deviation from strict HGVS syntax will result in an error. This is the default mode for maximum compliance.
Lenient
Auto-correct common errors with warnings.
Common errors like wrong dash characters or lowercase amino acids will be automatically corrected, but warnings will be generated.
Silent
Auto-correct silently without warnings.
Common errors are automatically corrected without generating any warnings. Use this for batch processing where you want maximum tolerance.
Implementations§
Source§impl ErrorMode
impl ErrorMode
Sourcepub fn allows_correction(&self) -> bool
pub fn allows_correction(&self) -> bool
Returns true if this mode allows auto-correction.
Sourcepub fn emits_warnings(&self) -> bool
pub fn emits_warnings(&self) -> bool
Returns true if this mode should emit warnings.
Trait Implementations§
impl Copy for ErrorMode
impl Eq for ErrorMode
impl StructuralPartialEq for ErrorMode
Auto Trait Implementations§
impl Freeze for ErrorMode
impl RefUnwindSafe for ErrorMode
impl Send for ErrorMode
impl Sync for ErrorMode
impl Unpin for ErrorMode
impl UnsafeUnpin for ErrorMode
impl UnwindSafe for ErrorMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.