pub enum JsonTreeControl {
Descend,
SkipSubtree,
}Expand description
Selects whether a mutable tree visitor receives callbacks for descendants.
This control is returned by super::JsonTreeMutVisitor and interpreted by
super::JsonTreeMutator::process. Reader APIs do not return this control.
§Examples
use qubit_json::value::traverse::JsonTreeControl;
let control = JsonTreeControl::SkipSubtree;
assert_eq!(control, JsonTreeControl::SkipSubtree);Variants§
Descend
Visit the node’s descendants in normal depth-first order.
SkipSubtree
Skip callbacks for the node’s descendants.
Descendants remain subject to complete input and final output budget
accounting performed by super::JsonTreeMutator::process.
Trait Implementations§
Source§impl Clone for JsonTreeControl
impl Clone for JsonTreeControl
impl Copy for JsonTreeControl
Source§impl Debug for JsonTreeControl
impl Debug for JsonTreeControl
impl Eq for JsonTreeControl
Source§impl Hash for JsonTreeControl
impl Hash for JsonTreeControl
Source§impl PartialEq for JsonTreeControl
impl PartialEq for JsonTreeControl
impl StructuralPartialEq for JsonTreeControl
Auto Trait Implementations§
impl Forget for JsonTreeControl
impl Freeze for JsonTreeControl
impl RefUnwindSafe for JsonTreeControl
impl Send for JsonTreeControl
impl Sync for JsonTreeControl
impl Unpin for JsonTreeControl
impl UnsafeUnpin for JsonTreeControl
impl UnwindSafe for JsonTreeControl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more