Trait RangePattern

pub trait RangePattern

A trait implemented for integer types and char. Useful in the future for generic pattern types, but used right now to simplify ast lowering of pattern type ranges.

Associated Constants

const MIN: Self;

Trait version of the inherent MIN assoc const.

const MAX: Self;

Trait version of the inherent MIN assoc const.

Required Methods

fn sub_one(self) -> Self

A compile-time helper to subtract 1 for exclusive ranges.

Implementors