solidhunter_lib/types/position.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Serialize, Deserialize, Debug)]
4pub struct Position {
5 pub line: usize,
6 pub character: usize,
7}
8
9impl PartialEq for Position {
10 fn eq(&self, other: &Self) -> bool {
11 self.line == other.line && self.character == other.character
12 }
13}