pub struct RustTargetResolution { /* private fields */ }Expand description
One resolution result, bound to the snapshot it describes.
Implementations§
Source§impl RustTargetResolution
impl RustTargetResolution
Sourcepub fn try_new(
snapshot: &RustResolutionSnapshot,
report: ResolutionReport,
) -> Result<Self, RustResolutionError>
pub fn try_new( snapshot: &RustResolutionSnapshot, report: ResolutionReport, ) -> Result<Self, RustResolutionError>
Bind report to snapshot, or refuse every disagreement between them.
Sourcepub fn root_target(&self) -> TargetId
pub fn root_target(&self) -> TargetId
The target this resolution was requested for.
Sourcepub fn units(&self) -> &[RustUnitBinding]
pub fn units(&self) -> &[RustUnitBinding]
Every report-local unit identifier and the Cargo target it names.
Sourcepub fn unit(&self, unit: ResolutionUnitId) -> Option<&RustUnitBinding>
pub fn unit(&self, unit: ResolutionUnitId) -> Option<&RustUnitBinding>
The binding one report-local unit identifier selects.
Sourcepub fn report(&self) -> &ResolutionReport
pub fn report(&self) -> &ResolutionReport
The validated report, shared rather than copied.
A second handle on the same validated report.
Trait Implementations§
Source§impl Clone for RustTargetResolution
impl Clone for RustTargetResolution
Source§fn clone(&self) -> RustTargetResolution
fn clone(&self) -> RustTargetResolution
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 moreAuto Trait Implementations§
impl Freeze for RustTargetResolution
impl RefUnwindSafe for RustTargetResolution
impl Send for RustTargetResolution
impl Sync for RustTargetResolution
impl Unpin for RustTargetResolution
impl UnsafeUnpin for RustTargetResolution
impl UnwindSafe for RustTargetResolution
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,
Source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more