pub struct NormalizeResultWithWarnings {
pub result: HgvsVariant,
pub warnings: Vec<NormalizationWarning>,
}Expand description
Result of normalization with optional warnings
Fields§
§result: HgvsVariantThe normalized variant
warnings: Vec<NormalizationWarning>Warnings generated during normalization
Implementations§
Source§impl NormalizeResultWithWarnings
impl NormalizeResultWithWarnings
Sourcepub fn new(result: HgvsVariant) -> Self
pub fn new(result: HgvsVariant) -> Self
Create a new result without warnings
Sourcepub fn with_warnings(
result: HgvsVariant,
warnings: Vec<NormalizationWarning>,
) -> Self
pub fn with_warnings( result: HgvsVariant, warnings: Vec<NormalizationWarning>, ) -> Self
Create a result with warnings
Sourcepub fn add_warning(&mut self, warning: NormalizationWarning)
pub fn add_warning(&mut self, warning: NormalizationWarning)
Add a warning to the result
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Check if there are any warnings
Sourcepub fn has_ref_mismatch(&self) -> bool
pub fn has_ref_mismatch(&self) -> bool
Check if there’s a reference mismatch warning
Trait Implementations§
Source§impl Clone for NormalizeResultWithWarnings
impl Clone for NormalizeResultWithWarnings
Source§fn clone(&self) -> NormalizeResultWithWarnings
fn clone(&self) -> NormalizeResultWithWarnings
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for NormalizeResultWithWarnings
impl RefUnwindSafe for NormalizeResultWithWarnings
impl Send for NormalizeResultWithWarnings
impl Sync for NormalizeResultWithWarnings
impl Unpin for NormalizeResultWithWarnings
impl UnsafeUnpin for NormalizeResultWithWarnings
impl UnwindSafe for NormalizeResultWithWarnings
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