pub struct Artifact {
pub path: Target,
pub name: String,
pub nested: BTreeMap<ChildPrefix, ArtifactId>,
pub covering_part: Option<ArtifactId>,
}Expand description
Access data computed by the caller, without declarations, evals, or owner commands.
Fields§
§path: Target§name: String§nested: BTreeMap<ChildPrefix, ArtifactId>Logical path prefix to the nested folder Artifact that owns it.
covering_part: Option<ArtifactId>A folder part whose target contains this entire target’s containing folder.
Implementations§
Source§impl Artifact
impl Artifact
pub fn kind(&self) -> ArtifactKind
pub fn select(&self) -> &[LogicalPath]
pub fn folder(&self) -> &Path
Sourcepub fn selective(&self) -> bool
pub fn selective(&self) -> bool
Whether only some paths below its folder are the Artifact’s: a file Artifact’s target or an aspect’s selection, under a virtual root.
Sourcepub fn admits(&self, path: InputPath<&str>) -> bool
pub fn admits(&self, path: InputPath<&str>) -> bool
Whether the logical path below its folder is the Artifact’s: always for a folder,
and for an aspect a selected path, a path below one, or a folder leading to one.
pub fn file_name(&self) -> Option<&str>
Trait Implementations§
Auto Trait Implementations§
impl Forget for Artifact
impl Freeze for Artifactwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<OsString>: Freeze,
PhantomData<LogicalPath>: Freeze,
*const LeafNode<ChildPrefix, ArtifactId> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(ChildPrefix, ArtifactId)>>: Freeze,
impl Move for Artifact
impl RefUnwindSafe for Artifact
impl Send for Artifactwhere
RawVecInner: Send,
NodeRef<Owned, ChildPrefix, ArtifactId, LeafOrInternal>: Send,
BoxRaw<(ChildPrefix, ArtifactId)>: Send,
impl Sync for Artifactwhere
RawVecInner: Sync,
NodeRef<Owned, ChildPrefix, ArtifactId, LeafOrInternal>: Sync,
BoxRaw<(ChildPrefix, ArtifactId)>: Sync,
impl Unpin for Artifactwhere
*const u8 is !null: Unpin,
*const LeafNode<ChildPrefix, ArtifactId> is !null: Unpin,
Box<(ChildPrefix, ArtifactId)>: Unpin,
impl UnsafeUnpin for Artifactwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<OsString>: UnsafeUnpin,
PhantomData<LogicalPath>: UnsafeUnpin,
*const LeafNode<ChildPrefix, ArtifactId> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(ChildPrefix, ArtifactId)>>: UnsafeUnpin,
impl UnwindSafe for Artifact
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