pub struct Utf16Pos {
pub line: u32,
pub col: u32,
}Expand description
BC.8c: a UTF-16 code-unit column on a given line. LSP’s default
position encoding counts UTF-16 code units, not bytes; converting to
Lattice’s byte offset (lattice_protocol::Position.byte) needs the
target line’s text, which only exists after the file is open. So
Effect::OpenBufferAtColumn carries this unconverted column for
the host to resolve post-open. Plain u32s — no lsp_types leak.
Fields§
§line: u320-based line.
col: u320-based column in UTF-16 code units (LSP’s default encoding), not bytes.
Trait Implementations§
impl Copy for Utf16Pos
Source§impl<'de> Deserialize<'de> for Utf16Pos
impl<'de> Deserialize<'de> for Utf16Pos
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
impl Eq for Utf16Pos
impl StructuralPartialEq for Utf16Pos
Auto Trait Implementations§
impl Freeze for Utf16Pos
impl RefUnwindSafe for Utf16Pos
impl Send for Utf16Pos
impl Sync for Utf16Pos
impl Unpin for Utf16Pos
impl UnsafeUnpin for Utf16Pos
impl UnwindSafe for Utf16Pos
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.