pub struct LspPosition {
pub line: u32,
pub character: u32,
}Expand description
LSP position (0-indexed).
Fields§
§line: u32Line number (0-indexed).
character: u32Character offset (0-indexed, 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 · 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 Default for LspPosition
impl Default for LspPosition
Source§fn default() -> LspPosition
fn default() -> LspPosition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LspPosition
impl<'de> Deserialize<'de> for LspPosition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LspPosition
impl PartialEq for LspPosition
Source§impl Serialize for LspPosition
impl Serialize for LspPosition
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 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