pub struct Artifact {
pub path: PathBuf,
pub kind: ArtifactKind,
pub name: String,
pub nested: BTreeMap<ChildPrefix, ArtifactId>,
pub select: Vec<String>,
}Expand description
Access data computed by the caller, without declarations, evals, or owner commands.
Fields§
§path: PathBuf§kind: ArtifactKind§name: String§nested: BTreeMap<ChildPrefix, ArtifactId>Logical path prefix to the nested folder Artifact that owns it.
select: Vec<String>An aspect’s selected paths, relative to its folder; empty for other kinds.
Implementations§
Source§impl Artifact
impl Artifact
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: &str) -> bool
pub fn admits(&self, path: &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 Freeze 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