Trait rustc_ap_rustc_data_structures::functor::IdFunctor[][src]

pub trait IdFunctor {
    type Inner;
    fn map_id<F>(self, f: F) -> Self
    where
        F: FnMut(Self::Inner) -> Self::Inner
; }

Associated Types

Required methods

fn map_id<F>(self, f: F) -> Self where
    F: FnMut(Self::Inner) -> Self::Inner
[src]

Implementations on Foreign Types

impl<T> IdFunctor for Box<T>[src]

type Inner = T

fn map_id<F>(self, f: F) -> Self where
    F: FnMut(Self::Inner) -> Self::Inner
[src]

impl<T> IdFunctor for Vec<T>[src]

type Inner = T

fn map_id<F>(self, f: F) -> Self where
    F: FnMut(Self::Inner) -> Self::Inner
[src]

impl<T> IdFunctor for Box<[T]>[src]

type Inner = T

fn map_id<F>(self, f: F) -> Self where
    F: FnMut(Self::Inner) -> Self::Inner
[src]

impl<I: Idx, T> IdFunctor for IndexVec<I, T>[src]

type Inner = T

fn map_id<F>(self, f: F) -> Self where
    F: FnMut(Self::Inner) -> Self::Inner
[src]

Implementors