Struct treebender::featurestructure::NodeRef[][src]

pub struct NodeRef(_);

An interior-ly mutable ref to a Node.

Implementations

impl NodeRef[src]

pub fn new_top() -> Self[src]

pub fn new_str(s: String) -> Self[src]

pub fn new_with_edges<I>(edges: I) -> Result<Self, Err> where
    I: IntoIterator<Item = (String, NodeRef)>, 
[src]

Creates a NodeRef from a list of (name, noderef) features. Names CANNOT be dotted!

pub fn new_from_paths<I>(paths: I) -> Result<NodeRef, Err> where
    I: IntoIterator<Item = Feature>, 
[src]

pub fn deep_clone(&self) -> NodeRef[src]

pub fn dereference(self: NodeRef) -> NodeRef[src]

pub fn unify(n1: NodeRef, n2: NodeRef) -> Result<(), Err>[src]

Unify two feature structures. Both will be mutated. Use deep_clone() if one needs to be preserved.

Trait Implementations

impl Clone for NodeRef[src]

fn clone(&self) -> Self[src]

Clones the rc of this NodeRef. Use deep_clone to clone the actual feature structure.

impl Debug for NodeRef[src]

impl Display for NodeRef[src]

impl Eq for NodeRef[src]

impl Hash for NodeRef[src]

fn hash<H: Hasher>(&self, hasher: &mut H)[src]

Hashes NodeRefs via pointer equality. Does not dereference forwarding chains.

impl PartialEq<NodeRef> for NodeRef[src]

fn eq(&self, other: &Self) -> bool[src]

Compares NodeRefs via pointer equality. Does not dereference forwarding chains.

Auto Trait Implementations

impl !RefUnwindSafe for NodeRef

impl !Send for NodeRef

impl !Sync for NodeRef

impl Unpin for NodeRef

impl !UnwindSafe for NodeRef

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> 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> ToString for T where
    T: Display + ?Sized
[src]

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.