Enum graphannis::graph::ComponentType [−][src]
#[repr(C)]pub enum ComponentType { Coverage, InverseCoverage, Dominance, Pointing, Ordering, LeftToken, RightToken, PartOfSubcorpus, }
Specifies the type of component. Types determine certain semantics about the edges of this graph components.
Variants
Coverage
Edges between a span node and its tokens. Implies text coverage.
InverseCoverage
Edges between a token and a span node.
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.
PartOfSubcorpus
Implies that the source node belongs to the parent corpus/subcorpus/document node.
Trait Implementations
impl Eq for ComponentType
[src]
impl Eq for ComponentType
impl PartialEq for ComponentType
[src]
impl PartialEq for ComponentType
fn eq(&self, other: &ComponentType) -> bool
[src]
fn eq(&self, other: &ComponentType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialOrd for ComponentType
[src]
impl PartialOrd for ComponentType
fn partial_cmp(&self, other: &ComponentType) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &ComponentType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for ComponentType
[src]
impl Ord for ComponentType
fn cmp(&self, other: &ComponentType) -> Ordering
[src]
fn cmp(&self, other: &ComponentType) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for ComponentType
[src]
impl Hash for ComponentType
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for ComponentType
[src]
impl Clone for ComponentType
fn clone(&self) -> ComponentType
[src]
fn clone(&self) -> ComponentType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ComponentType
[src]
impl Debug for ComponentType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl IntoEnumIterator for ComponentType
[src]
impl IntoEnumIterator for ComponentType
impl FromStr for ComponentType
[src]
impl FromStr for ComponentType
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<ComponentType, Self::Err>
[src]
fn from_str(s: &str) -> Result<ComponentType, Self::Err>
Parses a string s
to return a value of this type. Read more
impl MallocSizeOf for ComponentType
[src]
impl MallocSizeOf for ComponentType
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl Display for ComponentType
[src]
impl Display for ComponentType
Auto Trait Implementations
impl Send for ComponentType
impl Send for ComponentType
impl Sync for ComponentType
impl Sync for ComponentType