pub struct Outputs { /* private fields */ }Implementations§
Source§impl Outputs
impl Outputs
Sourcepub fn from_paths(patterns: &[String]) -> Result<Self>
pub fn from_paths(patterns: &[String]) -> Result<Self>
Paths from already-expanded workspace-relative patterns, each with a
fixed directory prefix, as outputs require. A pattern starting with !
excludes what it matches.
Sourcepub fn new(workspace: &Workspace, task: &Task) -> Result<Self>
pub fn new(workspace: &Workspace, task: &Task) -> Result<Self>
The task’s outputs, from resolved_outputs.
Sourcepub fn is_explicit(&self) -> bool
pub fn is_explicit(&self) -> bool
Whether the outputs come from the target’s outputs.
Sourcepub fn declared(&self) -> bool
pub fn declared(&self) -> bool
Whether the task declares outputs that hold everything it produces,
so dependents may be keyed by their content alone. Nx’s defaults for a
target without outputs are only guesses, and do not count.
Sourcepub fn anchors(&self) -> impl Iterator<Item = &str>
pub fn anchors(&self) -> impl Iterator<Item = &str>
Fixed directory prefixes; every matching path lies below one of them.
pub fn matches(&self, path: &str) -> bool
pub fn paths(&self, root: &Path) -> Result<BTreeSet<String>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Outputs
impl RefUnwindSafe for Outputs
impl Send for Outputs
impl Sync for Outputs
impl Unpin for Outputs
impl UnsafeUnpin for Outputs
impl UnwindSafe for Outputs
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