[][src]Struct rhizome::Node

pub struct Node<V = Box<dyn Any>, K = TypeId, T = TypeId> { /* fields omitted */ }

Implementations

impl<V, K: Eq + Hash, T> Node<V, K, T>[src]

pub fn new(tag: T) -> Self[src]

pub fn provide(&mut self, key: K, value: V) -> Result<(), V>[src]

pub fn into_arc(self) -> Arc<Self>[src]

pub fn parent(&self) -> Option<&Self>[src]

impl<V, K: Eq + Hash> Node<V, K, TypeId>[src]

pub fn new_for<Tag: 'static>() -> Self[src]

impl<V, T: PartialEq> Node<V, TypeId, T>[src]

pub fn extract_with<Key: TypeKey<E, V, T>, E: stdError + 'static>(
    &self
) -> Result<MappedGuard<Box<RwLockReadGuard<'_, HashMap<TypeId, V>>>, &'_ V>, Error>
[src]

impl<V, K: Clone + Eq + Hash, T: PartialEq> Node<V, K, T>[src]

pub fn extract<E: stdError + 'static>(
    &self,
    key: K,
    provision: Provision<E, V, K, T>
) -> Result<MappedGuard<Box<RwLockReadGuard<'_, HashMap<K, V>>>, &'_ V>, Error>
[src]

Auto Trait Implementations

impl<V, K, T> RefUnwindSafe for Node<V, K, T> where
    T: RefUnwindSafe

impl<V, K, T> Send for Node<V, K, T> where
    K: Send + Sync,
    T: Send + Sync,
    V: Send + Sync

impl<V, K, T> Sync for Node<V, K, T> where
    K: Send + Sync,
    T: Send + Sync,
    V: Send + Sync

impl<V, K, T> Unpin for Node<V, K, T> where
    K: Unpin,
    T: Unpin,
    V: Unpin

impl<V, K, T> UnwindSafe for Node<V, K, T> where
    T: RefUnwindSafe + 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, 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.