Function derive_visitor::visitor_fn_mut

source ·
pub fn visitor_fn_mut<T, F: FnMut(&mut T, Event)>(fun: F) -> FnVisitor<T, F>
Expand description

Create a visitor that only visits items and mutates them with the given function

§Example

use derive_visitor::{visitor_fn_mut, DriveMut};
File.drive_mut(&mut visitor_fn_mut(|file: &mut File, event| {
    // ...your logic here
}));