pub enum ProjectDirArgument {
AnyPath,
SearchRoot,
WorkingDir,
ShellWorkingDir,
}Expand description
Which argument of a call names the directory it works in (see
ToolDispatchFacts::project_dir_argument).
Variants§
AnyPath
Any path-like argument names a project directory; none is filled.
SearchRoot
The search root, path: filled with the known project directory.
WorkingDir
The working directory, working_dir: filled with the known project
directory, or its nearest existing parent when it is not made yet.
ShellWorkingDir
A shell: only working_dir or cwd names the directory (paths in
the command are its data), filled as Self::WorkingDir and only
when the call carries a command or script.
Implementations§
Source§impl ProjectDirArgument
impl ProjectDirArgument
Sourcepub const fn injected_key(self) -> Option<&'static str>
pub const fn injected_key(self) -> Option<&'static str>
The argument the known project directory fills, if any.
Trait Implementations§
Source§impl Clone for ProjectDirArgument
impl Clone for ProjectDirArgument
impl Copy for ProjectDirArgument
Source§impl Debug for ProjectDirArgument
impl Debug for ProjectDirArgument
Source§impl Default for ProjectDirArgument
impl Default for ProjectDirArgument
impl Eq for ProjectDirArgument
Source§impl PartialEq for ProjectDirArgument
impl PartialEq for ProjectDirArgument
impl StructuralPartialEq for ProjectDirArgument
Auto Trait Implementations§
impl Forget for ProjectDirArgument
impl Freeze for ProjectDirArgument
impl Move for ProjectDirArgument
impl RefUnwindSafe for ProjectDirArgument
impl Send for ProjectDirArgument
impl Sync for ProjectDirArgument
impl Unpin for ProjectDirArgument
impl UnsafeUnpin for ProjectDirArgument
impl UnwindSafe for ProjectDirArgument
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