pub struct Range {
pub start: Box<Expr>,
pub end: Box<Expr>,
pub kind: RangeKind,
pub span: Range<usize>,
}Expand description
A range expression, written as start..end for a half-open range ([start, end)), or
start..=end for a closed range ([start, end]).
Fields§
§start: Box<Expr>The start of the range.
end: Box<Expr>The end of the range.
kind: RangeKindWhether the range is inclusive or exclusive.
span: Range<usize>The region of the source code that this literal was parsed from.
Implementations§
Trait Implementations§
Source§impl Latex for Range
impl Latex for Range
Source§fn as_display(&self) -> LatexFormatter<'_, Self>
fn as_display(&self) -> LatexFormatter<'_, Self>
Wraps the value in a
LatexFormatter, which implements Display.Source§impl<'source> Parse<'source> for Range
impl<'source> Parse<'source> for Range
impl Eq for Range
impl StructuralPartialEq for Range
Auto Trait Implementations§
impl Freeze for Range
impl RefUnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnwindSafe for Range
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more