autocommit 2022-04-10 01:35:15 CEST
This commit is contained in:
parent
21e2216ce5
commit
befd5e99b2
22 changed files with 280 additions and 114 deletions
|
|
@ -112,10 +112,8 @@ pub struct GenericNodeVisitor<F> {
|
|||
f: F,
|
||||
}
|
||||
|
||||
pub fn generic_node_visitor<F: FnMut(Rc<dyn Node>)>(f: F) -> GenericNodeVisitor<F> {
|
||||
GenericNodeVisitor {
|
||||
f,
|
||||
}
|
||||
pub fn generic_node_visitor<F: FnMut(Rc<dyn Node>)>(f: F) -> GenericNodeVisitor<F> {
|
||||
GenericNodeVisitor { f }
|
||||
}
|
||||
|
||||
impl<F: FnMut(Rc<dyn Node>)> NodeVisitor for GenericNodeVisitor<F> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue