[][src]Struct outils::types::NodeIndex

pub struct NodeIndex<Ix = DefaultIndexType>(pub Ix);

Newtype to be used as a type-safe tree node identifier

Implementations

impl<Ix> NodeIndex<Ix> where
    Ix: IndexType
[src]

pub fn index(&self) -> Ix[src]

Returns the wrapped index value

Trait Implementations

impl<Ix: Clone> Clone for NodeIndex<Ix>[src]

impl<Ix: Copy> Copy for NodeIndex<Ix>[src]

impl<Ix: Debug> Debug for NodeIndex<Ix>[src]

impl<Ix: Default> Default for NodeIndex<Ix>[src]

impl<Ix: Eq> Eq for NodeIndex<Ix>[src]

impl<Ix> From<Ix> for NodeIndex<Ix> where
    Ix: IndexType
[src]

impl<Ix: Hash> Hash for NodeIndex<Ix>[src]

impl<V> Index<NodeIndex<usize>> for AaForest<V> where
    V: ValueType
[src]

type Output = V

The returned type after indexing.

impl<K, V> Index<NodeIndex<usize>> for AaTree<K, V> where
    K: KeyType,
    V: ValueType
[src]

type Output = V

The returned type after indexing.

impl<V, W> Index<NodeIndex<usize>> for WeightedAaForest<V, W> where
    V: ValueType,
    W: WeightType
[src]

type Output = V

The returned type after indexing.

impl<K, V, W> Index<NodeIndex<usize>> for WeightedAaTree<K, V, W> where
    K: KeyType,
    V: ValueType,
    W: WeightType
[src]

type Output = V

The returned type after indexing.

impl<V> Index<NodeIndex<usize>> for Forest<V> where
    V: ValueType
[src]

type Output = V

The returned type after indexing.

impl<V> IndexMut<NodeIndex<usize>> for AaForest<V> where
    V: ValueType
[src]

impl<K, V> IndexMut<NodeIndex<usize>> for AaTree<K, V> where
    K: KeyType,
    V: ValueType
[src]

impl<V, W> IndexMut<NodeIndex<usize>> for WeightedAaForest<V, W> where
    V: ValueType,
    W: WeightType
[src]

impl<K, V, W> IndexMut<NodeIndex<usize>> for WeightedAaTree<K, V, W> where
    K: KeyType,
    V: ValueType,
    W: WeightType
[src]

impl<V> IndexMut<NodeIndex<usize>> for Forest<V> where
    V: ValueType
[src]

impl<Ix: Ord> Ord for NodeIndex<Ix>[src]

impl<Ix: PartialEq> PartialEq<NodeIndex<Ix>> for NodeIndex<Ix>[src]

impl<Ix: PartialOrd> PartialOrd<NodeIndex<Ix>> for NodeIndex<Ix>[src]

impl<Ix> StructuralEq for NodeIndex<Ix>[src]

impl<Ix> StructuralPartialEq for NodeIndex<Ix>[src]

Auto Trait Implementations

impl<Ix> RefUnwindSafe for NodeIndex<Ix> where
    Ix: RefUnwindSafe

impl<Ix> Send for NodeIndex<Ix> where
    Ix: Send

impl<Ix> Sync for NodeIndex<Ix> where
    Ix: Sync

impl<Ix> Unpin for NodeIndex<Ix> where
    Ix: Unpin

impl<Ix> UnwindSafe for NodeIndex<Ix> where
    Ix: 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> From<T> for T[src]

impl<T> IndexType for T where
    T: Default + Debug + Copy + Eq + Ord
[src]

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

impl<T> KeyType for T where
    T: Default + Debug + Copy + Eq + Ord + Hash
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> ValueType for T where
    T: Default + Debug
[src]