[][src]Struct conllu::graph::DepTriple

pub struct DepTriple<S> { /* fields omitted */ }

A dependency triple.

A dependency triple consists of: a head index; a dependent index; and an optional dependency label.

Methods

impl<S> DepTriple<S>[src]

pub fn new(head: usize, relation: Option<S>, dependent: usize) -> Self[src]

Construct a new dependency triple.

pub fn dependent(&self) -> usize[src]

Get the dependent.

pub fn head(&self) -> usize[src]

Get the head.

impl<S> DepTriple<S> where
    S: Borrow<str>, 
[src]

pub fn relation(&self) -> Option<&str>[src]

Trait Implementations

impl<S: Clone> Clone for DepTriple<S>[src]

impl<S: Debug> Debug for DepTriple<S>[src]

impl<S: Eq> Eq for DepTriple<S>[src]

impl<S: Ord> Ord for DepTriple<S>[src]

impl<S: PartialEq> PartialEq<DepTriple<S>> for DepTriple<S>[src]

impl<S: PartialOrd> PartialOrd<DepTriple<S>> for DepTriple<S>[src]

impl<S> StructuralEq for DepTriple<S>[src]

impl<S> StructuralPartialEq for DepTriple<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for DepTriple<S> where
    S: RefUnwindSafe

impl<S> Send for DepTriple<S> where
    S: Send

impl<S> Sync for DepTriple<S> where
    S: Sync

impl<S> Unpin for DepTriple<S> where
    S: Unpin

impl<S> UnwindSafe for DepTriple<S> where
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.