Walkable in rustc_macros - Rust
Description: Derives `Walkable` for the annotated `struct` or `enum` (`union` is not supported).

Skip to main content

## Walkable

# Derive Macro Walkable

Source

    #[derive(Walkable)]
    {
        // Attributes available to this derive:
        #[visitable]
    }

Expand description

Derives `Walkable` for the annotated `struct` or `enum` (`union` is not supported).

Each field of the struct or enum variant will be visited in definition order, using the `Walkable` implementation for its type. However, if a field of a struct or an enum variant is annotated with `#[visitable(ignore)]` then that field will not be visited (and its type is not required to implement `Walkable`).