pub struct LineSection {
pub start: isize,
pub end: isize,
}
Expand description
The line section with start
and end
represents the characters at
positions from lower bound start
to exclusive upper bound end
on a line.
The core invariant that end >= start
is enforced by LineSection::new
.
Fields§
§start: isize
The initial position on the line.
end: isize
One after the final valid position contained by this line section on the line, that is, an exclusive upper bound on the indices of the range of characters contained by this line section.
Implementations§
Auto Trait Implementations§
impl Freeze for LineSection
impl RefUnwindSafe for LineSection
impl Send for LineSection
impl Sync for LineSection
impl Unpin for LineSection
impl UnwindSafe for LineSection
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