pub struct None(());
Expand description

Do not visit any nested things. When you add a new “non-nested” thing, you will want to audit such uses to see if they remain valid.

Use this if you are only walking some particular kind of tree (i.e., a type, or fn signature) and you don’t want to thread a HIR map around.

Tuple Fields

0: ()

Trait Implementations

Whether the visitor visits nested “item-like” things. E.g., item, impl-item. Read more
Whether the visitor visits “intra item-like” things. E.g., function body, closure, AnonConst Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 0 bytes