Struct juniper::parser::Spanning[][src]

pub struct Spanning<T: Debug> {
    pub item: T,
    pub start: SourcePosition,
    pub end: SourcePosition,
}

Data structure used to wrap items with start and end markers in the input source

A "span" is a range of characters in the input source, starting at the character pointed by the start field and ending just before the end marker.

Fields

The wrapped item

Start position of the item

End position of the item

This points to the first source position after the wrapped item.

Methods

impl<T: Debug> Spanning<T>
[src]

Modify the contents of the spanned item

Trait Implementations

impl<T: Debug + Debug> Debug for Spanning<T>
[src]

Formats the value using the given formatter. Read more

impl<T> Clone for Spanning<T> where
    T: Clone + Debug
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> PartialEq for Spanning<T> where
    T: PartialEq + Debug
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T> Eq for Spanning<T> where
    T: Eq + Debug
[src]

impl<T> Hash for Spanning<T> where
    T: Hash + Debug
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> Serialize for Spanning<ParseError<'a>>
[src]

Serialize this value into the given Serde serializer. Read more

impl<'a> From<Spanning<ParseError<'a>>> for GraphQLError<'a>
[src]

Performs the conversion.

Auto Trait Implementations

impl<T> Send for Spanning<T> where
    T: Send

impl<T> Sync for Spanning<T> where
    T: Sync