pub struct Position {
pub line: usize,
pub column: usize,
}Expand description
Where in the document a problem was found, rendered as line:column.
graphql-parser reports a position for every field and fragment, so an error
can point a reader at the text that caused it rather than at the whole
document.
Fields§
§line: usize1-based line number.
column: usize1-based column number.
Trait Implementations§
impl Copy for Position
impl Eq for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnsafeUnpin for Position
impl UnwindSafe for Position
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