BTreeMutValueMapHelper

Trait BTreeMutValueMapHelper 

Source
pub trait BTreeMutValueMapHelper {
    // Required methods
    fn get_optional_inner_map_in_array_mut<'a, M: FromIterator<(String, &'a mut Value)>, I: FromIterator<M>>(
        &'a mut self,
        key: &str,
    ) -> Result<Option<I>, Error>;
    fn get_inner_map_in_array_mut<'a, M: FromIterator<(String, &'a mut Value)>, I: FromIterator<M>>(
        &'a mut self,
        key: &str,
    ) -> Result<I, Error>;
}

Required Methods§

Source

fn get_optional_inner_map_in_array_mut<'a, M: FromIterator<(String, &'a mut Value)>, I: FromIterator<M>>( &'a mut self, key: &str, ) -> Result<Option<I>, Error>

Source

fn get_inner_map_in_array_mut<'a, M: FromIterator<(String, &'a mut Value)>, I: FromIterator<M>>( &'a mut self, key: &str, ) -> Result<I, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<V> BTreeMutValueMapHelper for BTreeMap<String, V>
where V: BorrowMut<Value>,

Source§

fn get_optional_inner_map_in_array_mut<'a, M: FromIterator<(String, &'a mut Value)>, I: FromIterator<M>>( &'a mut self, key: &str, ) -> Result<Option<I>, Error>

Source§

fn get_inner_map_in_array_mut<'a, M: FromIterator<(String, &'a mut Value)>, I: FromIterator<M>>( &'a mut self, key: &str, ) -> Result<I, Error>

Implementors§