Struct syntaxdot_encoders::depseq::DependencyEncoding[][src]

pub struct DependencyEncoding<H> { /* fields omitted */ }

Encoding of a dependency relation as a token label.

Implementations

impl<H> DependencyEncoding<H>[src]

pub fn new(head: H, label: impl Into<String>) -> Self[src]

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

Get the head representation.

pub fn label(&self) -> &str[src]

Get the dependency label.

Trait Implementations

impl<H: Clone> Clone for DependencyEncoding<H>[src]

impl<H: Debug> Debug for DependencyEncoding<H>[src]

impl<'de, H> Deserialize<'de> for DependencyEncoding<H> where
    H: Deserialize<'de>, 
[src]

impl<H: Eq> Eq for DependencyEncoding<H>[src]

impl<H: Hash> Hash for DependencyEncoding<H>[src]

impl<H: PartialEq> PartialEq<DependencyEncoding<H>> for DependencyEncoding<H>[src]

impl<H> Serialize for DependencyEncoding<H> where
    H: Serialize
[src]

impl<H> StructuralEq for DependencyEncoding<H>[src]

impl<H> StructuralPartialEq for DependencyEncoding<H>[src]

impl ToString for DependencyEncoding<RelativePosition>[src]

impl ToString for DependencyEncoding<RelativePOS>[src]

Auto Trait Implementations

impl<H> RefUnwindSafe for DependencyEncoding<H> where
    H: RefUnwindSafe

impl<H> Send for DependencyEncoding<H> where
    H: Send

impl<H> Sync for DependencyEncoding<H> where
    H: Sync

impl<H> Unpin for DependencyEncoding<H> where
    H: Unpin

impl<H> UnwindSafe for DependencyEncoding<H> where
    H: 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<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.