pub fn subtree<V: Visitor>(
    v: &mut V,
    f: impl FnOnce(&mut V) -> Result<(), V::Output>,
) -> Result<(), V::Output> {
    v.start_subtree()?;
    f(v)?;
    v.end_subtree()
}
/// Executes a function in the scope of a new subtree.
Executes a function in the scope of a new subtree.
Executes a function in the scope of a new subtree .
pub fn subtree<V: Visitor>(
    v: &mut V,
    f: impl FnOnce(&mut V) -> Result<(), V::Output>,
) -> Result<(), V::Output> {
    v.start_subtree()?;
    f(v)?;
    v.end_subtree()
}
pub fn subtree < V : Visitor > ( v : & mut V , f : impl FnOnce ( & mut V ) -> Result < ( ) , V :: Output > , ) -> Result < ( ) , V :: Output > { v . start_subtree ( ) ? ; f ( v ) ? ; v . end_subtree ( ) }
Executes a function in the scope of a new subtree.
Executes a function in the scope of a new subtree .
v
&mut V
f
impl FnOnce(&mut V) -> Result<(), V::Output>
v
&mut V
f
impl FnOnce(&mut V) -> Result<(), V::Output>