Struct juniper::parser::SourcePosition [−][src]
pub struct SourcePosition { /* fields omitted */ }
Expand description
A reference to a line and column in an input source file
Implementations
The index of the character in the input source
Zero-based index. Take a substring of the original source starting at
this index to access the item pointed to by this SourcePosition
.
The line of the character in the input source
Zero-based index: the first line is line zero.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for SourcePosition
impl Send for SourcePosition
impl Sync for SourcePosition
impl Unpin for SourcePosition
impl UnwindSafe for SourcePosition
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V