Enum graphannis::model::AnnotationComponentType [−][src]
#[repr(C)]
pub enum AnnotationComponentType {
Coverage,
Dominance,
Pointing,
Ordering,
LeftToken,
RightToken,
PartOf,
}
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
Edges between a span node and its tokens. Implies text coverage.
Dominance
Edges between a structural node and any other structural node, span or token. Implies text coverage.
Pointing
Edge between any node.
Ordering
Edge between two tokens implying that the source node comes before the target node in the textflow.
LeftToken
Explicit edge between any non-token node and the left-most token it covers.
RightToken
Explicit edge between any non-token node and the right-most token it covers.
PartOf
Implies that the source node belongs to the parent corpus/subcorpus/document/datasource node.
Trait Implementations
type UpdateGraphIndex = AQLUpdateGraphIndex
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 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
Performs the conversion.
Performs the conversion.
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for AnnotationComponentType
impl Send for AnnotationComponentType
impl Sync for AnnotationComponentType
impl Unpin for AnnotationComponentType
impl UnwindSafe for AnnotationComponentType
Blanket Implementations
Mutably borrows from an owned value. Read more