pub enum JsonTreeControl {
Descend,
SkipSubtree,
}Expand description
Selects whether a successfully visited node exposes its descendants.
§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
Do not visit or charge the node’s descendants.
Trait Implementations§
Source§impl Clone for JsonTreeControl
impl Clone for JsonTreeControl
Source§fn clone(&self) -> JsonTreeControl
fn clone(&self) -> JsonTreeControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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 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