pub struct CleanRequest<'a> {
pub build_dir: &'a Path,
pub workspace_root: &'a Path,
pub package_roots: &'a [PathBuf],
pub protected_source_paths: &'a [PathBuf],
pub scope: CleanScope,
}Expand description
Inputs to plan_clean.
Fields§
§build_dir: &'a PathResolved absolute build directory.
workspace_root: &'a PathWorkspace root directory (manifest’s parent). Used by the safety check that refuses to clean the workspace itself.
package_roots: &'a [PathBuf]Manifest directories of every loaded package - single package or every workspace member. Used to refuse a build directory that points at a package source tree.
protected_source_paths: &'a [PathBuf]Source files and source-owned directories that must not
be contained by the build directory. This lets in-tree
build dirs like <pkg>/build keep working while rejecting
dangerous settings such as --build-dir src.
scope: CleanScopeWhat to clean.
Trait Implementations§
Source§impl<'a> Clone for CleanRequest<'a>
impl<'a> Clone for CleanRequest<'a>
Source§fn clone(&self) -> CleanRequest<'a>
fn clone(&self) -> CleanRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for CleanRequest<'a>
impl<'a> RefUnwindSafe for CleanRequest<'a>
impl<'a> Send for CleanRequest<'a>
impl<'a> Sync for CleanRequest<'a>
impl<'a> Unpin for CleanRequest<'a>
impl<'a> UnsafeUnpin for CleanRequest<'a>
impl<'a> UnwindSafe for CleanRequest<'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