Struct apollo_compiler::diagnostics::GraphQLLocation
source · pub struct GraphQLLocation {
pub line: usize,
pub column: usize,
}Expand description
A source location (line + column) for a GraphQL error.
Fields§
§line: usizeThe line number for this location, starting at 1 for the first line.
column: usizeThe column number for this location, starting at 1 and counting characters (Unicode Scalar Values) like str::chars.
Trait Implementations§
source§impl Clone for GraphQLLocation
impl Clone for GraphQLLocation
source§fn clone(&self) -> GraphQLLocation
fn clone(&self) -> GraphQLLocation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GraphQLLocation
impl Debug for GraphQLLocation
source§impl<'de> Deserialize<'de> for GraphQLLocation
impl<'de> Deserialize<'de> for GraphQLLocation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for GraphQLLocation
impl Hash for GraphQLLocation
source§impl PartialEq for GraphQLLocation
impl PartialEq for GraphQLLocation
source§fn eq(&self, other: &GraphQLLocation) -> bool
fn eq(&self, other: &GraphQLLocation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for GraphQLLocation
impl Serialize for GraphQLLocation
impl Copy for GraphQLLocation
impl Eq for GraphQLLocation
impl StructuralEq for GraphQLLocation
impl StructuralPartialEq for GraphQLLocation
Auto Trait Implementations§
impl RefUnwindSafe for GraphQLLocation
impl Send for GraphQLLocation
impl Sync for GraphQLLocation
impl Unpin for GraphQLLocation
impl UnwindSafe for GraphQLLocation
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.