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> Forget for Scope<'a>
impl<'a> Freeze for Scope<'a>where
*const LeafNode<ArtifactName, &'a Artifact> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(ArtifactName, &'a Artifact)>>: Freeze,
impl<'a> Move for Scope<'a>
impl<'a> RefUnwindSafe for Scope<'a>where
Atomic<usize>: RefUnwindSafe,
Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + Send + UnwindSafe>>: RefUnwindSafe,
Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + RefUnwindSafe + Send + UnwindSafe>>: RefUnwindSafe,
Pool<Vec<usize>, fn() -> Vec<usize>>: RefUnwindSafe,
impl<'a> Send for Scope<'a>where
NodeRef<Owned, ArtifactName, &'a Artifact, LeafOrInternal>: Send,
BoxRaw<(ArtifactName, &'a Artifact)>: Send,
impl<'a> Sync for Scope<'a>where
NodeRef<Owned, ArtifactName, &'a Artifact, LeafOrInternal>: Sync,
BoxRaw<(ArtifactName, &'a Artifact)>: Sync,
impl<'a> Unpin for Scope<'a>where
*const LeafNode<ArtifactName, &'a Artifact> is !null: Unpin,
Box<(ArtifactName, &'a Artifact)>: Unpin,
impl<'a> UnsafeUnpin for Scope<'a>where
*const LeafNode<ArtifactName, &'a Artifact> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(ArtifactName, &'a Artifact)>>: UnsafeUnpin,
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