[−][src]Struct conllu::graph::DepTriple
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]
S: Borrow<str>,
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]
fn cmp(&self, other: &DepTriple<S>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<S: PartialEq> PartialEq<DepTriple<S>> for DepTriple<S>
[src]
impl<S: PartialOrd> PartialOrd<DepTriple<S>> for DepTriple<S>
[src]
fn partial_cmp(&self, other: &DepTriple<S>) -> Option<Ordering>
[src]
fn lt(&self, other: &DepTriple<S>) -> bool
[src]
fn le(&self, other: &DepTriple<S>) -> bool
[src]
fn gt(&self, other: &DepTriple<S>) -> bool
[src]
fn ge(&self, other: &DepTriple<S>) -> bool
[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,
S: RefUnwindSafe,
impl<S> Send for DepTriple<S> where
S: Send,
S: Send,
impl<S> Sync for DepTriple<S> where
S: Sync,
S: Sync,
impl<S> Unpin for DepTriple<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for DepTriple<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,