pub struct PicRange {
pub line: u32,
pub col: u32,
pub end_line: u32,
pub end_col: u32,
}Expand description
A range of the user’s figure source (never the prelude): 1-based
lines and columns, as the diagnostics’ PicSpan, from
(line, col) to (end_line, end_col), end exclusive. Columns
count chars (Unicode scalar values) from the start of the line —
not bytes, not UTF-16 code units: a JavaScript consumer indexes a
line by code point (Array.from(line)), not by line[i], when the
line holds characters outside the BMP. Lines are split at \n.
Fields§
§line: u32§col: u32§end_line: u32§end_col: u32Trait Implementations§
impl Eq for PicRange
impl StructuralPartialEq for PicRange
Auto Trait Implementations§
impl Forget for PicRange
impl Freeze for PicRange
impl Move for PicRange
impl RefUnwindSafe for PicRange
impl Send for PicRange
impl Sync for PicRange
impl Unpin for PicRange
impl UnsafeUnpin for PicRange
impl UnwindSafe for PicRange
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