[][src]Struct nix_query_tree_viewer::tree::TreePathMap

pub struct TreePathMap<U>(_)
where
    U: Eq + Hash
;

This is a mapping of items in Tree to their Paths. A single item in the Tree can have multiple Paths to it if it is in the Tree multiple times.

Methods

impl<U> TreePathMap<U> where
    U: Eq + Hash
[src]

pub fn new() -> TreePathMap<U>[src]

pub fn insert(&mut self, k: U, path: Path)[src]

Insert a mapping from U to Path.

pub fn lookup_first(&self, k: &U) -> Option<&Path>[src]

Lookup the first Path for a given item.

Trait Implementations

impl<U: Clone> Clone for TreePathMap<U> where
    U: Eq + Hash
[src]

impl<U: Debug> Debug for TreePathMap<U> where
    U: Eq + Hash
[src]

impl<U: Default> Default for TreePathMap<U> where
    U: Eq + Hash
[src]

impl<U: Eq> Eq for TreePathMap<U> where
    U: Eq + Hash
[src]

impl<U: PartialEq> PartialEq<TreePathMap<U>> for TreePathMap<U> where
    U: Eq + Hash
[src]

impl<U> StructuralEq for TreePathMap<U> where
    U: Eq + Hash
[src]

impl<U> StructuralPartialEq for TreePathMap<U> where
    U: Eq + Hash
[src]

Auto Trait Implementations

impl<U> RefUnwindSafe for TreePathMap<U> where
    U: RefUnwindSafe

impl<U> Send for TreePathMap<U> where
    U: Send

impl<U> Sync for TreePathMap<U> where
    U: Sync

impl<U> Unpin for TreePathMap<U> where
    U: Unpin

impl<U> UnwindSafe for TreePathMap<U> where
    U: 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, 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.