Skip to main content

ConfigureFn

Type Alias ConfigureFn 

Source
type ConfigureFn<'a> = dyn FnMut(&mut AttrsTarget) -> bool + 'a;
Expand description

Fn type used to do (or not do) cfg expansion. It can modify attributes. The return value indicates if the target should be retained. Any children of discarded targets are skipped.

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: (unsized)