pub struct Scope<'a> {
pub artifacts: BTreeMap<ArtifactName, &'a Artifact>,
}Fields§
§artifacts: BTreeMap<ArtifactName, &'a Artifact>Implementations§
Source§impl Scope<'_>
impl Scope<'_>
pub fn resolve_path( &self, artifact_id: &ArtifactName, path: &str, ) -> Result<ScopedPath, ScopeError>
pub fn resolve_input( &self, root: &Path, artifact_id: &ArtifactName, path: &str, ) -> Result<PathBuf, ScopeError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Scope<'a>
impl<'a> RefUnwindSafe for Scope<'a>
impl<'a> Send for Scope<'a>
impl<'a> Sync for Scope<'a>
impl<'a> Unpin for Scope<'a>
impl<'a> UnsafeUnpin for Scope<'a>
impl<'a> UnwindSafe for Scope<'a>
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