Struct conllx::graph::DepGraph

source ·
pub struct DepGraph<'a> { /* private fields */ }
Expand description

A graph view.

This data structure provides a view of a CoNLL-X dependency graph. The view can be used to retrieve the dependents of a head or the head of a dependent.

Implementations

Return an iterator over the dependents of head.

Return the head relation of dependent, if any.

Get the number of nodes in the dependency graph.

This is equal to the number of tokens, plus one root node.

Trait Implementations

The returned type after indexing.
Performs the indexing (container[index]) operation. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.