#[non_exhaustive]pub enum ExtractionDiagnosticKind {
ReadFile,
ParseFile,
MissingModule,
AmbiguousModule,
ModuleCycle,
InvalidPathAttribute,
AmbiguousReference,
UnknownReference,
}Expand description
The category of a non-fatal source extraction diagnostic.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ReadFile
A source file could not be read.
ParseFile
syn could not parse a source file.
MissingModule
An outlined module declaration had no matching source file.
AmbiguousModule
Both supported outlined module layouts matched one declaration.
ModuleCycle
Following module declarations would revisit a file in the same module ancestry.
InvalidPathAttribute
A #[path] attribute was not a literal string.
AmbiguousReference
A qualified path matched more than one viable internal or Cargo-visible target.
UnknownReference
A path’s first segment matched neither an internal module nor Cargo’s external prelude.
Implementations§
Trait Implementations§
Source§impl Clone for ExtractionDiagnosticKind
impl Clone for ExtractionDiagnosticKind
Source§fn clone(&self) -> ExtractionDiagnosticKind
fn clone(&self) -> ExtractionDiagnosticKind
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 ExtractionDiagnosticKind
impl Debug for ExtractionDiagnosticKind
Source§impl Hash for ExtractionDiagnosticKind
impl Hash for ExtractionDiagnosticKind
Source§impl Ord for ExtractionDiagnosticKind
impl Ord for ExtractionDiagnosticKind
Source§fn cmp(&self, other: &ExtractionDiagnosticKind) -> Ordering
fn cmp(&self, other: &ExtractionDiagnosticKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ExtractionDiagnosticKind
impl PartialEq for ExtractionDiagnosticKind
Source§impl PartialOrd for ExtractionDiagnosticKind
impl PartialOrd for ExtractionDiagnosticKind
impl Copy for ExtractionDiagnosticKind
impl Eq for ExtractionDiagnosticKind
impl StructuralPartialEq for ExtractionDiagnosticKind
Auto Trait Implementations§
impl Freeze for ExtractionDiagnosticKind
impl RefUnwindSafe for ExtractionDiagnosticKind
impl Send for ExtractionDiagnosticKind
impl Sync for ExtractionDiagnosticKind
impl Unpin for ExtractionDiagnosticKind
impl UnwindSafe for ExtractionDiagnosticKind
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.