Trait syn_ext::ext::MetaAttributeExt[][src]

pub trait MetaAttributeExt<'a> {
    fn to_multi_map_and_attrs<K, KF>(
        self,
        path_to_key: KF
    ) -> Result<(Map<K, Vec<(usize, Meta)>>, Vec<(usize, &'a Attribute)>)>
    where
        K: Hash + Eq,
        KF: Fn(&Path) -> Result<Option<K>>
;
fn to_unique_map_and_attrs<K, KF>(
        self,
        path_to_key: KF
    ) -> Result<(Map<K, (usize, Meta)>, Vec<(usize, &'a Attribute)>)>
    where
        K: Hash + Eq,
        KF: Fn(&Path) -> Result<Option<K>>
; }
Expand description

experimental

Required methods

Implementors