Struct juniper::parser::SourcePosition[][src]

pub struct SourcePosition { /* fields omitted */ }

A reference to a line and column in an input source file

Implementations

impl SourcePosition[src]

pub fn index(&self) -> usize[src]

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.

pub fn line(&self) -> usize[src]

The line of the character in the input source

Zero-based index: the first line is line zero.

pub fn column(&self) -> usize[src]

The column of the character in the input source

Zero-based index: the first column is column zero.

Trait Implementations

impl Clone for SourcePosition[src]

impl Copy for SourcePosition[src]

impl Debug for SourcePosition[src]

impl Display for SourcePosition[src]

impl Eq for SourcePosition[src]

impl Hash for SourcePosition[src]

impl Ord for SourcePosition[src]

impl PartialEq<SourcePosition> for SourcePosition[src]

impl PartialOrd<SourcePosition> for SourcePosition[src]

impl Serialize for SourcePosition[src]

impl StructuralEq for SourcePosition[src]

impl StructuralPartialEq for SourcePosition[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,