pub fn with_edge<V: Visitor, Name: AsRef<[u8]>>(
    v: &mut V,
    name: Name,
    f: impl FnOnce(&mut V) -> Result<(), V::Output>,
) -> Result<(), V::Output> {
    match v.enter_edge(name.as_ref())? {
        Control::Continue => f(v),
        Control::Skip => Ok(()),
    }
}
/// Enter edge labeled as `name` and execute `f` if it was not skipped.
Enter edge labeled as `name` and execute `f` if it was not skipped.
Enter edge labeled as ` name ` and execute ` f ` if it was not skipped .
pub fn with_edge<V: Visitor, Name: AsRef<[u8]>>(
    v: &mut V,
    name: Name,
    f: impl FnOnce(&mut V) -> Result<(), V::Output>,
) -> Result<(), V::Output> {
    match v.enter_edge(name.as_ref())? {
        Control::Continue => f(v),
        Control::Skip => Ok(()),
    }
}
pub fn with_edge < V : Visitor , Name : AsRef < [ u8 ] > > ( v : & mut V , name : Name , f : impl FnOnce ( & mut V ) -> Result < ( ) , V :: Output > , ) -> Result < ( ) , V :: Output > { match v . enter_edge ( name . as_ref ( ) ) ? { Control :: Continue => f ( v ) , Control :: Skip => Ok ( ( ) ) , } }
Enter edge labeled as `name` and execute `f` if it was not skipped.
Enter edge labeled as ` name ` and execute ` f ` if it was not skipped .
v
&mut V
name
Name
f
impl FnOnce(&mut V) -> Result<(), V::Output>
v
&mut V
name
Name
f
impl FnOnce(&mut V) -> Result<(), V::Output>