Trait tikv_util::TryInsertWith[][src]

pub trait TryInsertWith<'a, V, E> {
    fn or_try_insert_with<F: FnOnce() -> Result<V, E>>(
        self,
        default: F
    ) -> Result<&'a mut V, E>; }

A helper trait for Entry to accept a failable closure.

Required methods

fn or_try_insert_with<F: FnOnce() -> Result<V, E>>(
    self,
    default: F
) -> Result<&'a mut V, E>
[src]

Loading content...

Implementations on Foreign Types

impl<'a, T: 'a, V: 'a, E> TryInsertWith<'a, V, E> for Entry<'a, T, V>[src]

Loading content...

Implementors

Loading content...