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
Source§fn clone(&self) -> ProjectDirArgument
fn clone(&self) -> ProjectDirArgument
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 moreimpl Copy for ProjectDirArgument
Source§impl Debug for ProjectDirArgument
impl Debug for ProjectDirArgument
Source§impl Default for ProjectDirArgument
impl Default for ProjectDirArgument
Source§fn default() -> ProjectDirArgument
fn default() -> ProjectDirArgument
Returns the “default value” for a type. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more