Struct clippy_lints::utils::higher::Range [] [src]

pub struct Range<'a> {
    pub start: Option<&'a Expr>,
    pub end: Option<&'a Expr>,
    pub limits: RangeLimits,
}

Represent a range akin to ast::ExprKind::Range.

Fields

The lower bound of the range, or None for ranges such as ..X.

The upper bound of the range, or None for ranges such as X...

Whether the interval is open or closed.

Trait Implementations

impl<'a> Debug for Range<'a>
[src]

Formats the value using the given formatter.

impl<'a> Copy for Range<'a>
[src]

impl<'a> Clone for Range<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more