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 Forget for Scope
impl Freeze for Scopewhere
*const LeafNode<ArtifactId, Artifact> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(ArtifactId, Artifact)>>: Freeze,
impl Move for Scope
impl RefUnwindSafe for Scope
impl Send for Scopewhere
NodeRef<Owned, ArtifactId, Artifact, LeafOrInternal>: Send,
BoxRaw<(ArtifactId, Artifact)>: Send,
impl Sync for Scopewhere
NodeRef<Owned, ArtifactId, Artifact, LeafOrInternal>: Sync,
BoxRaw<(ArtifactId, Artifact)>: Sync,
impl Unpin for Scope
impl UnsafeUnpin for Scopewhere
*const LeafNode<ArtifactId, Artifact> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(ArtifactId, Artifact)>>: UnsafeUnpin,
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