Struct hpo::comparison::AnnotationDelta
source · pub struct AnnotationDelta { /* private fields */ }
Expand description
Differences between two Gene
s or OmimDisease
s
Implementations§
source§impl<'a> AnnotationDelta
impl<'a> AnnotationDelta
sourcepub fn gene(lhs: &Gene, rhs: &Gene) -> Option<Self>
pub fn gene(lhs: &Gene, rhs: &Gene) -> Option<Self>
Constructs a new AnnotationDelta
by comparing two Gene
s
Returns None
if both are identical
sourcepub fn disease(lhs: &OmimDisease, rhs: &OmimDisease) -> Option<Self>
pub fn disease(lhs: &OmimDisease, rhs: &OmimDisease) -> Option<Self>
Constructs a new AnnotationDelta
by comparing two OmimDisease
s
Returns None
if both are identical
sourcepub fn added_terms(&'a self) -> Option<&Vec<HpoTermId>>
pub fn added_terms(&'a self) -> Option<&Vec<HpoTermId>>
Returns all directly linked HpoTermId
s of the new
annotation that
are not linked to the old
anotation
Returns None
if no such terms exist
sourcepub fn removed_terms(&'a self) -> Option<&Vec<HpoTermId>>
pub fn removed_terms(&'a self) -> Option<&Vec<HpoTermId>>
Returns all directly linked HpoTermId
s of the old
annotation that
are not linked to the new
anotation
Returns None
if no such terms exist
sourcepub fn changed_name(&self) -> Option<&(String, String)>
pub fn changed_name(&self) -> Option<&(String, String)>
Returns the old
and new
name if they are different
Returns None
if the name is unchanged
Auto Trait Implementations§
impl Freeze for AnnotationDelta
impl RefUnwindSafe for AnnotationDelta
impl Send for AnnotationDelta
impl Sync for AnnotationDelta
impl Unpin for AnnotationDelta
impl UnwindSafe for AnnotationDelta
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> 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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.