Skip to main content

pattern_type

Macro pattern_type 

Source
pub macro pattern_type($( $arg:tt )*) {
    ...
}
🔬This is a nightly-only experimental API. (pattern_types #123646)
Expand description

Creates a pattern type.

ⓘ
type Positive = std::pat::pattern_type!(i32 is 1..);