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.

Required Associated Types§

Required Methods§

source

fn start(&self) -> Option<Self::Bound>

source

fn end(&self) -> Option<Self::Bound>

source

fn op_kind(&self) -> Option<RangeOp>

source

fn op_token(&self) -> Option<SyntaxToken>

Implementors§