# Trait rustc_ast::mut_visit::DummyAstNode

source ·

    pub trait DummyAstNode {
        // Required method
        fn dummy() -> Self;
    }

Expand description

Some value for the AST node that is valid but possibly meaningless. Similar to `Default` but not intended for wide use. The value will never be used meaningfully, it exists just to support unwinding in `visit_clobber` in the case where its closure panics.

## Required Methods§

source

#### fn dummy() -> Self

## Object Safety§

This trait is not object safe.

## Implementations on Foreign Types§

source§

### impl<T> DummyAstNode for Option<T>

source§

#### fn dummy() -> Self

## Implementors§

source§

### impl DummyAstNode for Crate

source§

### impl DummyAstNode for Expr

source§

### impl DummyAstNode for Item

source§

### impl DummyAstNode for Pat

source§

### impl DummyAstNode for Stmt

source§

### impl DummyAstNode for Ty

source§

### impl<N: DummyAstNode, T: DummyAstNode> DummyAstNode for AstNodeWrapper<N, T>

source§

### impl<T: DummyAstNode + 'static> DummyAstNode for P<T>