Enum graphannis::model::AnnotationComponentType
source · #[repr(C)]pub enum AnnotationComponentType {
Coverage = 0,
Dominance = 2,
Pointing = 3,
Ordering = 4,
LeftToken = 5,
RightToken = 6,
PartOf = 7,
}
Expand description
Specifies the type of component of the annotation graph. The types of this enum carray certain semantics about the edges of the graph components their are used in.
Variants§
Coverage = 0
Edges between a span node and its tokens. Implies text coverage.
Dominance = 2
Edges between a structural node and any other structural node, span or token. Implies text coverage.
Pointing = 3
Edge between any node.
Ordering = 4
Edge between two tokens implying that the source node comes before the target node in the textflow.
LeftToken = 5
Explicit edge between any non-token node and the left-most token it covers.
RightToken = 6
Explicit edge between any non-token node and the right-most token it covers.
PartOf = 7
Implies that the source node belongs to the parent corpus/subcorpus/document/datasource node.
Trait Implementations§
source§impl Clone for AnnotationComponentType
impl Clone for AnnotationComponentType
source§fn clone(&self) -> AnnotationComponentType
fn clone(&self) -> AnnotationComponentType
Returns a copy 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 moresource§impl ComponentType for AnnotationComponentType
impl ComponentType for AnnotationComponentType
type UpdateGraphIndex = AQLUpdateGraphIndex
§type GlobalStatistics = AQLGlobalStatistics
type GlobalStatistics = AQLGlobalStatistics
Statistics that combine information for multiple graph components/and or annotations.
fn all_component_types() -> Vec<Self>
fn default_components() -> Vec<AnnotationComponent>
fn init_update_graph_index( graph: &AnnotationGraph ) -> Result<Self::UpdateGraphIndex, ComponentTypeError>
fn before_update_event( update: &UpdateEvent, graph: &AnnotationGraph, index: &mut Self::UpdateGraphIndex ) -> Result<(), ComponentTypeError>
fn after_update_event( update: UpdateEvent, graph: &AnnotationGraph, index: &mut Self::UpdateGraphIndex ) -> Result<(), ComponentTypeError>
fn apply_update_graph_index( index: Self::UpdateGraphIndex, graph: &mut AnnotationGraph ) -> Result<(), ComponentTypeError>
fn update_graph_index_components(_graph: &Graph<Self>) -> Vec<Component<Self>>
fn calculate_global_statistics( graph: &mut Graph<Self> ) -> Result<(), ComponentTypeError>
source§impl Debug for AnnotationComponentType
impl Debug for AnnotationComponentType
source§impl<'de> Deserialize<'de> for AnnotationComponentType
impl<'de> Deserialize<'de> for AnnotationComponentType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for AnnotationComponentType
impl Display for AnnotationComponentType
source§impl From<AnnotationComponentType> for u16
impl From<AnnotationComponentType> for u16
source§fn from(t: AnnotationComponentType) -> Self
fn from(t: AnnotationComponentType) -> Self
Converts to this type from the input type.
source§impl From<u16> for AnnotationComponentType
impl From<u16> for AnnotationComponentType
source§fn from(idx: u16) -> AnnotationComponentType
fn from(idx: u16) -> AnnotationComponentType
Converts to this type from the input type.
source§impl FromStr for AnnotationComponentType
impl FromStr for AnnotationComponentType
source§impl Hash for AnnotationComponentType
impl Hash for AnnotationComponentType
source§impl Ord for AnnotationComponentType
impl Ord for AnnotationComponentType
source§fn cmp(&self, other: &AnnotationComponentType) -> Ordering
fn cmp(&self, other: &AnnotationComponentType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for AnnotationComponentType
impl PartialEq for AnnotationComponentType
source§fn eq(&self, other: &AnnotationComponentType) -> bool
fn eq(&self, other: &AnnotationComponentType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AnnotationComponentType
impl PartialOrd for AnnotationComponentType
source§fn partial_cmp(&self, other: &AnnotationComponentType) -> Option<Ordering>
fn partial_cmp(&self, other: &AnnotationComponentType) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl Serialize for AnnotationComponentType
impl Serialize for AnnotationComponentType
impl Eq for AnnotationComponentType
impl StructuralPartialEq for AnnotationComponentType
Auto Trait Implementations§
impl Freeze for AnnotationComponentType
impl RefUnwindSafe for AnnotationComponentType
impl Send for AnnotationComponentType
impl Sync for AnnotationComponentType
impl Unpin for AnnotationComponentType
impl UnwindSafe for AnnotationComponentType
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> CallHasher for T
impl<T> CallHasher for T
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more