Skip to main content

BTreeValueRemoveTupleFromMapHelper

Trait BTreeValueRemoveTupleFromMapHelper 

Source
pub trait BTreeValueRemoveTupleFromMapHelper {
    // Required methods
    fn remove_tuple<K, V>(&mut self, key: &str) -> Result<(K, V), Error>
       where K: TryFrom<Value, Error = Error> + Ord,
             V: TryFrom<Value, Error = Error>;
    fn remove_optional_tuple<K, V>(
        &mut self,
        key: &str,
    ) -> Result<Option<(K, V)>, Error>
       where K: TryFrom<Value, Error = Error> + Ord,
             V: TryFrom<Value, Error = Error>;
}

Required Methods§

Source

fn remove_tuple<K, V>(&mut self, key: &str) -> Result<(K, V), Error>
where K: TryFrom<Value, Error = Error> + Ord, V: TryFrom<Value, Error = Error>,

Source

fn remove_optional_tuple<K, V>( &mut self, key: &str, ) -> Result<Option<(K, V)>, Error>
where K: TryFrom<Value, Error = Error> + Ord, V: TryFrom<Value, Error = Error>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl BTreeValueRemoveTupleFromMapHelper for BTreeMap<String, Value>

Source§

fn remove_tuple<K, V>(&mut self, key: &str) -> Result<(K, V), Error>
where K: TryFrom<Value, Error = Error> + Ord, V: TryFrom<Value, Error = Error>,

Source§

fn remove_optional_tuple<K, V>( &mut self, key: &str, ) -> Result<Option<(K, V)>, Error>
where K: TryFrom<Value, Error = Error> + Ord, V: TryFrom<Value, Error = Error>,

Implementors§