[][src]Struct nested_modules::Module

pub struct Module<K, V> {
    pub data: V,
    // some fields omitted
}

A module with data and submodules.

Fields

data: V

Implementations

impl<K: Ord, V> Module<K, V>[src]

pub fn get(&self, path: &[K]) -> Option<&Self>[src]

Return a reference to a submodule at the given path.

Trait Implementations

impl<K: Ord, V: Default> Default for Module<K, V>[src]

impl<K: Ord, V> From<Context<K, V>> for Module<K, V>[src]

impl<K, V> From<Module<K, V>> for Context<K, V>[src]

impl<K: Ord, V> From<V> for Module<K, V>[src]

Auto Trait Implementations

impl<K, V> Send for Module<K, V> where
    K: Send,
    V: Send

impl<K, V> Sync for Module<K, V> where
    K: Sync,
    V: Sync

impl<K, V> Unpin for Module<K, V> where
    K: Unpin,
    V: Unpin

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<!> for T[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.