pub struct TestArtifacts { /* private fields */ }Expand description
A resolved set of test artifacts, returned by
TestArtifactRequirements::resolve.
Implementations§
Source§impl TestArtifacts
impl TestArtifacts
Sourcepub fn try_get(&self, artifact: impl AsArtifactHandle) -> Option<&Path>
pub fn try_get(&self, artifact: impl AsArtifactHandle) -> Option<&Path>
Try to get the resolved path of an artifact.
Returns None if the artifact was not required. Panics if the artifact
is only available remotely.
Sourcepub fn get(&self, artifact: impl AsArtifactHandle) -> &Path
pub fn get(&self, artifact: impl AsArtifactHandle) -> &Path
Get the resolved path of an artifact.
Panics if the artifact was not required or is only available remotely.
Sourcepub fn try_get_source(
&self,
artifact: impl AsArtifactHandle,
) -> Option<&ArtifactSource>
pub fn try_get_source( &self, artifact: impl AsArtifactHandle, ) -> Option<&ArtifactSource>
Try to get the resolved source of an artifact.
Sourcepub fn get_source(&self, artifact: impl AsArtifactHandle) -> &ArtifactSource
pub fn get_source(&self, artifact: impl AsArtifactHandle) -> &ArtifactSource
Get the resolved source of an artifact.
Trait Implementations§
Source§impl Clone for TestArtifacts
impl Clone for TestArtifacts
Source§fn clone(&self) -> TestArtifacts
fn clone(&self) -> TestArtifacts
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for TestArtifacts
impl RefUnwindSafe for TestArtifacts
impl Send for TestArtifacts
impl Sync for TestArtifacts
impl Unpin for TestArtifacts
impl UnsafeUnpin for TestArtifacts
impl UnwindSafe for TestArtifacts
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