pub trait KeyPathsBTreeMapExt<K, V> {
// Required methods
fn map_values_keypath<T, F, R>(
&self,
keypath: KeyPaths<V, T>,
f: F,
) -> KeyPathResult<BTreeMap<K, R>>
where K: Clone + Ord,
F: Fn(&T) -> R;
fn filter_values_keypath<T, F>(
&self,
keypath: KeyPaths<V, T>,
predicate: F,
) -> KeyPathResult<BTreeMap<K, V>>
where K: Clone + Ord,
V: Clone,
F: Fn(&T) -> bool;
}Expand description
Operations for BTreeMap collections
Required Methods§
Sourcefn map_values_keypath<T, F, R>(
&self,
keypath: KeyPaths<V, T>,
f: F,
) -> KeyPathResult<BTreeMap<K, R>>
fn map_values_keypath<T, F, R>( &self, keypath: KeyPaths<V, T>, f: F, ) -> KeyPathResult<BTreeMap<K, R>>
Transform values using keypath
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.