Struct juniper::Spanning [−][src]
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
item: T
The wrapped item
start: SourcePosition
Start position of the item
end: SourcePosition
End position of the item
This points to the first source position after the wrapped item.
Implementations
impl<T> Spanning<T>
[src]
pub fn map<O: Debug, F: Fn(T) -> O>(self, f: F) -> Spanning<O>
[src]
Modify the contents of the spanned item
Trait Implementations
impl<T: Clone> Clone for Spanning<T>
[src]
impl<T: Copy> Copy for Spanning<T>
[src]
impl<T: Debug> Debug for Spanning<T>
[src]
impl<T: Display> Display for Spanning<T>
[src]
impl<T: Eq> Eq for Spanning<T>
[src]
impl<T: Error> Error for Spanning<T>
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<'a> From<Spanning<ParseError<'a>>> for GraphQLError<'a>
[src]
fn from(f: Spanning<ParseError<'a>>) -> GraphQLError<'a>
[src]
impl<T: Hash> Hash for Spanning<T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: PartialEq> PartialEq<Spanning<T>> for Spanning<T>
[src]
impl<'a> Serialize for Spanning<ParseError<'a>>
[src]
impl<T> StructuralEq for Spanning<T>
[src]
impl<T> StructuralPartialEq for Spanning<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Spanning<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Spanning<T> where
T: Send,
T: Send,
impl<T> Sync for Spanning<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Spanning<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Spanning<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,