pub struct Span {
pub start: Point,
pub end: Point,
}Expand description
A contiguous range in the source text, delimited by a start and end Point.
The range is half-open: start is inclusive and end is exclusive, mirroring
tree-sitter’s node range semantics.
Fields§
§start: PointInclusive start position of the span.
end: PointExclusive end position of the span.
Implementations§
Trait Implementations§
impl Copy for Span
impl Eq for Span
impl StructuralPartialEq for Span
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnsafeUnpin for Span
impl UnwindSafe for Span
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