pub struct Utf16Span {
pub start_utf16: usize,
pub end_utf16: usize,
pub line: usize,
}Expand description
Convert a UTF-8 byte span to a UTF-16 code-unit span.
UTF-16 spans are used by LSP (Language Server Protocol).
Fields§
§start_utf16: usizeStart UTF-16 code-unit index on the line.
end_utf16: usizeEnd UTF-16 code-unit index on the line.
line: usizeLine number (0-indexed for LSP).
Auto Trait Implementations§
impl Freeze for Utf16Span
impl RefUnwindSafe for Utf16Span
impl Send for Utf16Span
impl Sync for Utf16Span
impl Unpin for Utf16Span
impl UnsafeUnpin for Utf16Span
impl UnwindSafe for Utf16Span
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