pub struct Utf16Position {
pub line: u32,
pub character: u32,
}Expand description
A UTF-16 coordinate used by protocols like LSP.
Fields§
§line: u32Zero-based line index.
character: u32Zero-based UTF-16 code unit offset within the line.
Implementations§
Trait Implementations§
Source§impl Clone for Utf16Position
impl Clone for Utf16Position
Source§fn clone(&self) -> Utf16Position
fn clone(&self) -> Utf16Position
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 Utf16Position
impl Debug for Utf16Position
Source§impl PartialEq for Utf16Position
impl PartialEq for Utf16Position
impl Copy for Utf16Position
impl Eq for Utf16Position
impl StructuralPartialEq for Utf16Position
Auto Trait Implementations§
impl Freeze for Utf16Position
impl RefUnwindSafe for Utf16Position
impl Send for Utf16Position
impl Sync for Utf16Position
impl Unpin for Utf16Position
impl UnsafeUnpin for Utf16Position
impl UnwindSafe for Utf16Position
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