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 Artifact
impl Move for Artifact
impl RefUnwindSafe for Artifact
impl Send for Artifact
impl Sync for Artifact
impl Unpin for Artifact
impl UnsafeUnpin for Artifact
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