[][src]Trait syn_ext::ext::NestedMetaRefIteratorExt

pub trait NestedMetaRefIteratorExt<'a, M> where
    M: 'a + Borrow<Meta>, 
{ fn to_multi_map_and_lits<K, KF>(
        self,
        path_to_key: KF
    ) -> Result<(Map<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<(Map<K, (usize, M)>, Vec<(usize, &'a Lit)>)>
    where
        K: Hash + Eq,
        KF: Fn(&Path) -> Result<Option<K>>
; }

experimental

Required methods

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

Loading content...

Implementors

impl<'a, I> NestedMetaRefIteratorExt<'a, &'a Meta> for I where
    I: IntoIterator<Item = &'a NestedMeta>, 
[src]

Loading content...