Struct stc_ts_types::replace::TypeReplacer
source · [−]struct TypeReplacer<'a, M, R>where
M: Fn(&Type) -> bool,
R: Fn(&mut Type) -> Option<Type>,{
cache: &'a mut FxHashMap<*const (), bool>,
matcher: &'a M,
replacer: &'a R,
}
Fields
cache: &'a mut FxHashMap<*const (), bool>
matcher: &'a M
replacer: &'a R
Trait Implementations
Auto Trait Implementations
impl<'a, M, R> RefUnwindSafe for TypeReplacer<'a, M, R>where
M: RefUnwindSafe,
R: RefUnwindSafe,
impl<'a, M, R> !Send for TypeReplacer<'a, M, R>
impl<'a, M, R> !Sync for TypeReplacer<'a, M, R>
impl<'a, M, R> Unpin for TypeReplacer<'a, M, R>
impl<'a, M, R> !UnwindSafe for TypeReplacer<'a, M, R>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more