#[non_exhaustive]pub struct ExtractionDiagnostic { /* private fields */ }Expand description
One non-fatal limitation encountered while extracting Rust dependencies.
Implementations§
Source§impl ExtractionDiagnostic
impl ExtractionDiagnostic
Sourcepub fn source(&self) -> &str
pub fn source(&self) -> &str
Returns the normalized file identifier where extraction was limited.
Sourcepub const fn line(&self) -> Option<usize>
pub const fn line(&self) -> Option<usize>
Returns the one-based source line when syntax identified one.
Sourcepub const fn kind(&self) -> ExtractionDiagnosticKind
pub const fn kind(&self) -> ExtractionDiagnosticKind
Returns this diagnostic’s stable category.
Sourcepub fn candidates(&self) -> &[String]
pub fn candidates(&self) -> &[String]
Returns every viable target for an ambiguity in deterministic order.
Trait Implementations§
Source§impl Clone for ExtractionDiagnostic
impl Clone for ExtractionDiagnostic
Source§fn clone(&self) -> ExtractionDiagnostic
fn clone(&self) -> ExtractionDiagnostic
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 ExtractionDiagnostic
impl Debug for ExtractionDiagnostic
Source§impl Hash for ExtractionDiagnostic
impl Hash for ExtractionDiagnostic
Source§impl Ord for ExtractionDiagnostic
impl Ord for ExtractionDiagnostic
Source§fn cmp(&self, other: &ExtractionDiagnostic) -> Ordering
fn cmp(&self, other: &ExtractionDiagnostic) -> 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 ExtractionDiagnostic
impl PartialEq for ExtractionDiagnostic
Source§impl PartialOrd for ExtractionDiagnostic
impl PartialOrd for ExtractionDiagnostic
impl Eq for ExtractionDiagnostic
impl StructuralPartialEq for ExtractionDiagnostic
Auto Trait Implementations§
impl Freeze for ExtractionDiagnostic
impl RefUnwindSafe for ExtractionDiagnostic
impl Send for ExtractionDiagnostic
impl Sync for ExtractionDiagnostic
impl Unpin for ExtractionDiagnostic
impl UnwindSafe for ExtractionDiagnostic
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.