pub trait RangeItem {
type Bound;
// Required methods
fn start(&self) -> Option<Self::Bound>;
fn end(&self) -> Option<Self::Bound>;
fn op_kind(&self) -> Option<RangeOp>;
fn op_token(&self) -> Option<SyntaxToken>;
}
Expand description
Trait to describe operations common to both RangeExpr
and RangePat
.