[−][src]Trait c2rust_refactor::matcher::Pattern
Trait for AST types that can be used as patterns in a search-and-replace (mut_visit_match
).
Provided methods
fn visit<'a, 'tcx, T, F>(
self,
_init_mcx: MatchCtxt<'a, 'tcx>,
_callback: F,
_target: &mut T
) where
T: MutVisit,
F: FnMut(&mut V, MatchCtxt<'a, 'tcx>),
self,
_init_mcx: MatchCtxt<'a, 'tcx>,
_callback: F,
_target: &mut T
) where
T: MutVisit,
F: FnMut(&mut V, MatchCtxt<'a, 'tcx>),
fn flat_map<'a, 'tcx, T, F>(
self,
_init_mcx: MatchCtxt<'a, 'tcx>,
_callback: F,
_target: &mut T
) where
T: MutVisit,
F: FnMut(V, MatchCtxt<'a, 'tcx>) -> SmallVec<[V; 1]>,
self,
_init_mcx: MatchCtxt<'a, 'tcx>,
_callback: F,
_target: &mut T
) where
T: MutVisit,
F: FnMut(V, MatchCtxt<'a, 'tcx>) -> SmallVec<[V; 1]>,
Implementations on Foreign Types
impl Pattern<P<Expr>> for P<Expr>
[src]
fn visit<'a, 'tcx, T, F>(
self,
init_mcx: MatchCtxt<'a, 'tcx>,
callback: F,
target: &mut T
) where
T: MutVisit,
F: FnMut(&mut Self, MatchCtxt<'a, 'tcx>),
[src]
self,
init_mcx: MatchCtxt<'a, 'tcx>,
callback: F,
target: &mut T
) where
T: MutVisit,
F: FnMut(&mut Self, MatchCtxt<'a, 'tcx>),
fn flat_map<'a, 'tcx, T, F>(
self,
_init_mcx: MatchCtxt<'a, 'tcx>,
_callback: F,
_target: &mut T
) where
T: MutVisit,
F: FnMut(V, MatchCtxt<'a, 'tcx>) -> SmallVec<[V; 1]>,
[src]
self,
_init_mcx: MatchCtxt<'a, 'tcx>,
_callback: F,
_target: &mut T
) where
T: MutVisit,
F: FnMut(V, MatchCtxt<'a, 'tcx>) -> SmallVec<[V; 1]>,
impl Pattern<P<Ty>> for P<Ty>
[src]
fn visit<'a, 'tcx, T, F>(
self,
init_mcx: MatchCtxt<'a, 'tcx>,
callback: F,
target: &mut T
) where
T: MutVisit,
F: FnMut(&mut Self, MatchCtxt<'a, 'tcx>),
[src]
self,
init_mcx: MatchCtxt<'a, 'tcx>,
callback: F,
target: &mut T
) where
T: MutVisit,
F: FnMut(&mut Self, MatchCtxt<'a, 'tcx>),
fn flat_map<'a, 'tcx, T, F>(
self,
_init_mcx: MatchCtxt<'a, 'tcx>,
_callback: F,
_target: &mut T
) where
T: MutVisit,
F: FnMut(V, MatchCtxt<'a, 'tcx>) -> SmallVec<[V; 1]>,
[src]
self,
_init_mcx: MatchCtxt<'a, 'tcx>,
_callback: F,
_target: &mut T
) where
T: MutVisit,
F: FnMut(V, MatchCtxt<'a, 'tcx>) -> SmallVec<[V; 1]>,
impl Pattern<Stmt> for Stmt
[src]
fn visit<'a, 'tcx, T, F>(
self,
init_mcx: MatchCtxt<'a, 'tcx>,
callback: F,
target: &mut T
) where
T: MutVisit,
F: FnMut(&mut Self, MatchCtxt<'a, 'tcx>),
[src]
self,
init_mcx: MatchCtxt<'a, 'tcx>,
callback: F,
target: &mut T
) where
T: MutVisit,
F: FnMut(&mut Self, MatchCtxt<'a, 'tcx>),
fn flat_map<'a, 'tcx, T, F>(
self,
_init_mcx: MatchCtxt<'a, 'tcx>,
_callback: F,
_target: &mut T
) where
T: MutVisit,
F: FnMut(V, MatchCtxt<'a, 'tcx>) -> SmallVec<[V; 1]>,
[src]
self,
_init_mcx: MatchCtxt<'a, 'tcx>,
_callback: F,
_target: &mut T
) where
T: MutVisit,
F: FnMut(V, MatchCtxt<'a, 'tcx>) -> SmallVec<[V; 1]>,
impl Pattern<Vec<Stmt>> for Vec<Stmt>
[src]
fn visit<'a, 'tcx, T, F>(
self,
init_mcx: MatchCtxt<'a, 'tcx>,
callback: F,
target: &mut T
) where
T: MutVisit,
F: FnMut(&mut Vec<Stmt>, MatchCtxt<'a, 'tcx>),
[src]
self,
init_mcx: MatchCtxt<'a, 'tcx>,
callback: F,
target: &mut T
) where
T: MutVisit,
F: FnMut(&mut Vec<Stmt>, MatchCtxt<'a, 'tcx>),
fn flat_map<'a, 'tcx, T, F>(
self,
_init_mcx: MatchCtxt<'a, 'tcx>,
_callback: F,
_target: &mut T
) where
T: MutVisit,
F: FnMut(V, MatchCtxt<'a, 'tcx>) -> SmallVec<[V; 1]>,
[src]
self,
_init_mcx: MatchCtxt<'a, 'tcx>,
_callback: F,
_target: &mut T
) where
T: MutVisit,
F: FnMut(V, MatchCtxt<'a, 'tcx>) -> SmallVec<[V; 1]>,