pub struct Loc {
pub sl: usize,
pub sc: usize,
pub el: usize,
pub ec: usize,
}Expand description
a source range: zero-based rows and columns (UTF-16 units, as the reference reads them from web-tree-sitter), end exclusive
Fields§
§sl: usize§sc: usize§el: usize§ec: usizeTrait Implementations§
impl Copy for Loc
impl StructuralPartialEq for Loc
Auto Trait Implementations§
impl Freeze for Loc
impl RefUnwindSafe for Loc
impl Send for Loc
impl Sync for Loc
impl Unpin for Loc
impl UnsafeUnpin for Loc
impl UnwindSafe for Loc
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