Trait recursive_variadic::RecursiveVariadic [] [src]

pub trait RecursiveVariadic {
    fn get<N: Key>(&self) -> Option<&N::Value>;
    fn get_mut<N: Key>(&mut self) -> Option<&mut N::Value>;

    fn and<N: Key>(self, val: N::Value) -> Entry<N, Self>
    where
        Self: Sized
, { ... } fn and_default<N: Key>(self) -> Entry<N, Self>
    where
        N::Value: Default,
        Self: Sized
, { ... } }

The building block trait for recursive variadics.

Required Methods

Try to get the value for N.

Try to get the value for N mutably.

Provided Methods

Add a key-value pair to this.

Add the default value for N

Implementors