pub struct Scope {
pub artifacts: BTreeMap<ArtifactId, Artifact>,
}Fields§
§artifacts: BTreeMap<ArtifactId, Artifact>Implementations§
Source§impl Scope
impl Scope
Sourcepub fn resolve_path(
&self,
artifact_id: &ArtifactId,
path: &str,
) -> Result<ScopedPath, ScopeError>
pub fn resolve_path( &self, artifact_id: &ArtifactId, path: &str, ) -> Result<ScopedPath, ScopeError>
Pure logical resolution. Each child hop consumes path components.
Sourcepub fn resolve_input(
&self,
root: &Path,
artifact_id: &ArtifactId,
path: &str,
) -> Result<PathBuf, ScopeError>
pub fn resolve_input( &self, root: &Path, artifact_id: &ArtifactId, path: &str, ) -> Result<PathBuf, ScopeError>
Existing file or directory, without traversing links even inside the owner.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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