Trait serde_json_merge::iter::Traverser
source · [−]pub trait Traverser {
fn new() -> Self;
fn set_limit<L>(&mut self, limit: L)
where
L: Into<Option<usize>>;
fn set_depth<D>(&mut self, depth: D)
where
D: Into<Option<usize>>;
fn mutate_then_next(
&mut self,
value: &mut Value,
mutate: impl FnMut(&IndexPath, &mut Value)
) -> Option<IndexPath>;
fn next(&mut self, value: &Value) -> Option<IndexPath>;
fn process_next(
&mut self,
value: &Value,
process: impl FnMut(&IndexPath, Option<&Value>) -> bool
) -> Option<IndexPath>;
fn reset(&mut self);
}
Required Methods
sourcefn mutate_then_next(