pub struct FileSpan {
pub start: FilePos,
pub len: LspCol,
}Fields§
§start: FilePos§len: LspColImplementations§
Source§impl FileSpan
impl FileSpan
pub fn empty_at(start: FilePos) -> Self
pub fn from_range(range: Range<FilePos>, file: &FileContents) -> Self
pub fn to_lsp(&self, file: &FileContents) -> Range
pub fn end(&self, file: &FileContents) -> FilePos
pub fn empty_at_start(&self) -> Self
pub fn empty_at_end(&self, file: &FileContents) -> Self
pub fn overlaps(&self, other: &Self, file: &FileContents) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileSpan
impl RefUnwindSafe for FileSpan
impl Send for FileSpan
impl Sync for FileSpan
impl Unpin for FileSpan
impl UnsafeUnpin for FileSpan
impl UnwindSafe for FileSpan
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