NestedMetaIteratorExt

Trait NestedMetaIteratorExt 

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

experimental

Required Methods§

Source

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

Source

fn into_unique_map_and_lits<K, KF>( self, path_to_key: KF, ) -> Result<(HashMap<K, (usize, Meta1)>, Vec<(usize, 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> NestedMetaIteratorExt<'a> for I
where I: IntoIterator<Item = NestedMeta>,