pub struct Source {
pub start: u32,
pub end: u32,
}Expand description
A byte range in a notation string, end exclusive.
Positions are not part of what a step means, so every Source compares
equal to every other. Two notations that differ only in spacing are the same
line: a test can write its expected AST without counting columns, and a
session does not mistake a re-indented line for an edited one and restart
its ramps.
Fields§
§start: u32§end: u32Trait Implementations§
impl Copy for Source
impl Eq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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