Struct languageserver_types::Position
[−]
[src]
pub struct Position { pub line: u64, pub character: u64, }
Position in a text document expressed as zero-based line and character offset. A position is between two characters like an 'insert' cursor in a editor.
Fields
line: u64
Line position in a document (zero-based).
character: u64
Character offset on a line in a document (zero-based).
Methods
impl Position
[src]
Trait Implementations
impl Debug for Position
[src]
impl PartialEq for Position
[src]
fn eq(&self, __arg_0: &Position) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Position) -> bool
This method tests for !=
.
impl Copy for Position
[src]
impl Clone for Position
[src]
fn clone(&self) -> Position
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more