pub struct LspPosition {
pub line: usize,
pub character: usize,
}Expand description
An LSP-compatible position (0-based line, 0-based UTF-16 code-unit column).
Fields§
§line: usize0-based line number.
character: usize0-based column measured in UTF-16 code units.
Implementations§
Trait Implementations§
Source§impl Clone for LspPosition
impl Clone for LspPosition
Source§fn clone(&self) -> LspPosition
fn clone(&self) -> LspPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LspPosition
impl Debug for LspPosition
Source§impl Hash for LspPosition
impl Hash for LspPosition
Source§impl PartialEq for LspPosition
impl PartialEq for LspPosition
Source§fn eq(&self, other: &LspPosition) -> bool
fn eq(&self, other: &LspPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LspPosition
impl Eq for LspPosition
impl StructuralPartialEq for LspPosition
Auto Trait Implementations§
impl Freeze for LspPosition
impl RefUnwindSafe for LspPosition
impl Send for LspPosition
impl Sync for LspPosition
impl Unpin for LspPosition
impl UnsafeUnpin for LspPosition
impl UnwindSafe for LspPosition
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