Continue in clippy_utils::visitors::internal - Rust
Description: Trait for visitor functions to control whether or not to descend to child nodes. Implemented for only two types. `()` always descends. `Descend` allows controlled descent.

Skip to main content

## Continue

# Trait Continue

Source

    pub trait Continue {
        // Required method
        fn descend(&self) -> bool;
    }

Expand description

Trait for visitor functions to control whether or not to descend to child nodes. Implemented for only two types. `()` always descends. `Descend` allows controlled descent.

## Required Methods§

Source

#### fn descend(&self) -> bool

## Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

## Implementations on Foreign Types§

Source§

### impl Continue for ()

Source§

#### fn descend(&self) -> bool

## Implementors§

Source§

### impl Continue for Descend