[][src]Trait ra_ap_hir_def::dyn_map::Policy

pub trait Policy {
    type K;
    type V;
    fn insert(map: &mut DynMap, key: Self::K, value: Self::V);
fn get<'a>(map: &'a DynMap, key: &Self::K) -> Option<&'a Self::V>; }

Associated Types

type K

type V

Loading content...

Required methods

fn insert(map: &mut DynMap, key: Self::K, value: Self::V)

fn get<'a>(map: &'a DynMap, key: &Self::K) -> Option<&'a Self::V>

Loading content...

Implementations on Foreign Types

impl<K: Hash + Eq + 'static, V: 'static> Policy for (K, V)[src]

type K = K

type V = V

Loading content...

Implementors

impl<AST: AstNode + 'static, ID: 'static> Policy for AstPtrPolicy<AST, ID>[src]

type K = InFile<AST>

type V = ID

Loading content...