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
start: Option<&'a Expr>
The lower bound of the range, or None
for ranges such as ..X
.
end: Option<&'a Expr>
The upper bound of the range, or None
for ranges such as X..
.
limits: RangeLimits
Whether the interval is open or closed.
Trait Implementations
impl<'a> Debug for Range<'a>
[src]
impl<'a> Copy for Range<'a>
[src]
impl<'a> Clone for Range<'a>
[src]
fn clone(&self) -> Range<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more