NestedMetaRefIteratorExt

Trait NestedMetaRefIteratorExt 

Source
pub trait NestedMetaRefIteratorExt<'a, M>
where M: 'a + Borrow<Meta1>,
{ // Required methods fn to_multi_map_and_lits<K, KF>( self, path_to_key: KF, ) -> Result<(HashMap<K, Vec<(usize, M)>>, Vec<(usize, &'a Lit)>)> where K: Hash + Eq, KF: Fn(&Path) -> Result<Option<K>>; fn to_unique_map_and_lits<K, KF>( self, path_to_key: KF, ) -> Result<(HashMap<K, (usize, M)>, Vec<(usize, &'a Lit)>)> where K: Hash + Eq, KF: Fn(&Path) -> Result<Option<K>>; }
Expand description

experimental

Required Methods§

Source

fn to_multi_map_and_lits<K, KF>( self, path_to_key: KF, ) -> Result<(HashMap<K, Vec<(usize, M)>>, Vec<(usize, &'a Lit)>)>
where K: Hash + Eq, KF: Fn(&Path) -> Result<Option<K>>,

Source

fn to_unique_map_and_lits<K, KF>( self, path_to_key: KF, ) -> Result<(HashMap<K, (usize, M)>, Vec<(usize, &'a Lit)>)>
where K: Hash + Eq, KF: Fn(&Path) -> Result<Option<K>>,

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.

Implementors§

Source§

impl<'a, I> NestedMetaRefIteratorExt<'a, &'a Meta1> for I
where I: IntoIterator<Item = &'a NestedMeta>,