pub trait IdFunctor: Sized {
    type Inner;

    // Required method
    fn try_map_id<F, E>(self, f: F) -> Result<Self, E>
       where F: FnMut(Self::Inner) -> Result<Self::Inner, E>;
}

Required Associated Types§

Required Methods§

source

fn try_map_id<F, E>(self, f: F) -> Result<Self, E>where F: FnMut(Self::Inner) -> Result<Self::Inner, E>,

Implementations on Foreign Types§

source§

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

§

type Inner = T

source§

fn try_map_id<F, E>(self, f: F) -> Result<Self, E>where F: FnMut(Self::Inner) -> Result<Self::Inner, E>,

source§

impl<T: Clone> IdFunctor for Arc<T>

§

type Inner = T

source§

fn try_map_id<F, E>(self, f: F) -> Result<Self, E>where F: FnMut(Self::Inner) -> Result<Self::Inner, E>,

source§

impl<T> IdFunctor for Vec<T>

§

type Inner = T

source§

fn try_map_id<F, E>(self, f: F) -> Result<Self, E>where F: FnMut(Self::Inner) -> Result<Self::Inner, E>,

source§

impl<T> IdFunctor for Box<T>

§

type Inner = T

source§

fn try_map_id<F, E>(self, f: F) -> Result<Self, E>where F: FnMut(Self::Inner) -> Result<Self::Inner, E>,

source§

impl<I: Idx, T> IdFunctor for IndexVec<I, T>

§

type Inner = T

source§

fn try_map_id<F, E>(self, f: F) -> Result<Self, E>where F: FnMut(Self::Inner) -> Result<Self::Inner, E>,

Implementors§

source§

impl<T: Clone> IdFunctor for Rc<T>

§

type Inner = T