#[non_exhaustive]pub struct SourceAttempt {
pub source: &'static str,
pub outcome: AttemptOutcome,
}Expand description
One row of the resolution trace.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source: &'static strSource key, matching crate::source::Source::name.
outcome: AttemptOutcomeWhat happened.
Implementations§
Source§impl SourceAttempt
impl SourceAttempt
Sourcepub fn new(source: &'static str, outcome: AttemptOutcome) -> Self
pub fn new(source: &'static str, outcome: AttemptOutcome) -> Self
Construct a row.
Trait Implementations§
Source§impl Clone for SourceAttempt
impl Clone for SourceAttempt
Source§fn clone(&self) -> SourceAttempt
fn clone(&self) -> SourceAttempt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SourceAttempt
impl Debug for SourceAttempt
impl Eq for SourceAttempt
Source§impl PartialEq for SourceAttempt
impl PartialEq for SourceAttempt
Source§fn eq(&self, other: &SourceAttempt) -> bool
fn eq(&self, other: &SourceAttempt) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceAttempt
Auto Trait Implementations§
impl Freeze for SourceAttempt
impl RefUnwindSafe for SourceAttempt
impl Send for SourceAttempt
impl Sync for SourceAttempt
impl Unpin for SourceAttempt
impl UnsafeUnpin for SourceAttempt
impl UnwindSafe for SourceAttempt
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