serde_ccl 0.1.2

Serde-based deserializer for CCL Documents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[derive(Clone, Copy, Default, Debug)]
pub(crate) struct Position {
    pub line: usize,
    pub column: usize,
}

impl Position {
    #[inline]
    #[must_use]
    pub fn is_default(&self) -> bool {
        self.line == 0 && self.column == 0
    }
}