pub struct Utf16Position {
pub line: usize,
pub character: usize,
}Expand description
Line and column where character counts UTF-16 code units (LSP, JS).
Fields§
§line: usize§character: usizeTrait Implementations§
Source§impl Clone for Utf16Position
impl Clone for Utf16Position
impl Copy for Utf16Position
Source§impl Debug for Utf16Position
impl Debug for Utf16Position
Source§impl Default for Utf16Position
impl Default for Utf16Position
impl Eq for Utf16Position
Source§impl Hash for Utf16Position
impl Hash for Utf16Position
Source§impl Ord for Utf16Position
impl Ord for Utf16Position
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Utf16Position
impl PartialEq for Utf16Position
Source§impl PartialOrd for Utf16Position
impl PartialOrd for Utf16Position
impl StructuralPartialEq for Utf16Position
Auto Trait Implementations§
impl Forget for Utf16Position
impl Freeze for Utf16Position
impl Move 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