pub struct Utf8Position {
pub line: u32,
pub character: u32,
}Expand description
A zero-based LSP-style position whose character offset is measured in UTF-8 bytes.
Fields§
§line: u32§character: u32Implementations§
Trait Implementations§
Source§impl Clone for Utf8Position
impl Clone for Utf8Position
Source§fn clone(&self) -> Utf8Position
fn clone(&self) -> Utf8Position
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Utf8Position
Source§impl Debug for Utf8Position
impl Debug for Utf8Position
impl Eq for Utf8Position
Source§impl PartialEq for Utf8Position
impl PartialEq for Utf8Position
impl StructuralPartialEq for Utf8Position
Auto Trait Implementations§
impl Freeze for Utf8Position
impl RefUnwindSafe for Utf8Position
impl Send for Utf8Position
impl Sync for Utf8Position
impl Unpin for Utf8Position
impl UnsafeUnpin for Utf8Position
impl UnwindSafe for Utf8Position
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