Struct graphannis_core::annostorage::Match
source · [−]Expand description
A match is the result of a query on an annotation storage.
Fields
node: NodeIDThe node identifier this match refers to.
anno_key: Arc<AnnoKey>The qualified annotation name.
Implementations
sourceimpl Match
impl Match
sourcepub fn extract_annotation(
&self,
node_annos: &dyn AnnotationStorage<NodeID>
) -> Result<Option<Annotation>>
pub fn extract_annotation(
&self,
node_annos: &dyn AnnotationStorage<NodeID>
) -> Result<Option<Annotation>>
Extract the annotation for this match . The annotation value
is retrieved from the node_annos given as argument.
sourcepub fn different_to_all(&self, other: &[Match]) -> bool
pub fn different_to_all(&self, other: &[Match]) -> bool
Returns true if this match is different to all the other matches given as argument.
A single match is different if the node ID or the annotation key are different.
sourcepub fn different_to(&self, other: &Match) -> bool
pub fn different_to(&self, other: &Match) -> bool
Returns true if this match is different to the other match given as argument.
A single match is different if the node ID or the annotation key are different.
Trait Implementations
sourceimpl Ord for Match
impl Ord for Match
sourceimpl PartialOrd<Match> for Match
impl PartialOrd<Match> for Match
sourcefn partial_cmp(&self, other: &Match) -> Option<Ordering>
fn partial_cmp(&self, other: &Match) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Eq for Match
impl StructuralEq for Match
impl StructuralPartialEq for Match
Auto Trait Implementations
impl RefUnwindSafe for Match
impl Send for Match
impl Sync for Match
impl Unpin for Match
impl UnwindSafe for Match
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more