Struct apollo_compiler::ast::InvalidNameError
source · pub struct InvalidNameError(pub NodeStr);
Tuple Fields§
§0: NodeStr
Trait Implementations§
source§impl Clone for InvalidNameError
impl Clone for InvalidNameError
source§fn clone(&self) -> InvalidNameError
fn clone(&self) -> InvalidNameError
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 InvalidNameError
impl Debug for InvalidNameError
source§impl Display for InvalidNameError
impl Display for InvalidNameError
source§impl Error for InvalidNameError
impl Error for InvalidNameError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<InvalidNameError> for SchemaCoordinateParseError
impl From<InvalidNameError> for SchemaCoordinateParseError
source§fn from(source: InvalidNameError) -> Self
fn from(source: InvalidNameError) -> Self
Converts to this type from the input type.
source§impl PartialEq for InvalidNameError
impl PartialEq for InvalidNameError
source§fn eq(&self, other: &InvalidNameError) -> bool
fn eq(&self, other: &InvalidNameError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToCliReport for InvalidNameError
impl ToCliReport for InvalidNameError
source§fn location(&self) -> Option<NodeLocation>
fn location(&self) -> Option<NodeLocation>
Return the main location for this error. May be
None
if a location doesn’t make sense for
the particular error.source§fn report(&self, report: &mut CliReport<'_>)
fn report(&self, report: &mut CliReport<'_>)
Fill in the report with source code labels. Read more
fn to_report<'s>(&self, sources: &'s SourceMap, color: Color) -> CliReport<'s>
source§fn to_diagnostic<'s>(&'s self, sources: &'s SourceMap) -> Diagnostic<'s, Self>where
Self: Sized,
fn to_diagnostic<'s>(&'s self, sources: &'s SourceMap) -> Diagnostic<'s, Self>where
Self: Sized,
Bundle this error together with a source map into a
Diagnostic
Read moreimpl Eq for InvalidNameError
impl StructuralPartialEq for InvalidNameError
Auto Trait Implementations§
impl Freeze for InvalidNameError
impl RefUnwindSafe for InvalidNameError
impl Send for InvalidNameError
impl Sync for InvalidNameError
impl Unpin for InvalidNameError
impl UnwindSafe for InvalidNameError
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.