pub struct LineRange {
pub start: usize,
pub end: usize,
}Expand description
A line range extracted from a GitHub permalink fragment.
Fields§
§start: usizeStart line (1-indexed).
end: usizeEnd line (1-indexed, inclusive). Same as start for single-line references.
Trait Implementations§
Auto Trait Implementations§
impl Forget for LineRange
impl Freeze for LineRange
impl Move for LineRange
impl RefUnwindSafe for LineRange
impl Send for LineRange
impl Sync for LineRange
impl Unpin for LineRange
impl UnsafeUnpin for LineRange
impl UnwindSafe for LineRange
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