pub enum LocationChoice {
Observed {
path: Utf8PathBuf,
},
Env {
variable: &'static str,
value: Option<String>,
},
Operator,
None,
}Expand description
One answer the operator can give for a location the project owns.
A choice carries a path only where the target already holds that directory. Inventing one would put a path this tool made up in front of an operator as though the repository had suggested it.
Variants§
Observed
A repository-relative directory the target already carries.
Fields
§
path: Utf8PathBufWhere it sits, relative to the target root.
Env
Wherever a variable resolves at run time.
Fields
Operator
A path the operator types.
None
The project keeps none.
Trait Implementations§
Source§impl Clone for LocationChoice
impl Clone for LocationChoice
Source§fn clone(&self) -> LocationChoice
fn clone(&self) -> LocationChoice
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 moreSource§impl Debug for LocationChoice
impl Debug for LocationChoice
impl Eq for LocationChoice
Source§impl PartialEq for LocationChoice
impl PartialEq for LocationChoice
Source§impl Serialize for LocationChoice
impl Serialize for LocationChoice
impl StructuralPartialEq for LocationChoice
Auto Trait Implementations§
impl Freeze for LocationChoice
impl RefUnwindSafe for LocationChoice
impl Send for LocationChoice
impl Sync for LocationChoice
impl Unpin for LocationChoice
impl UnsafeUnpin for LocationChoice
impl UnwindSafe for LocationChoice
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§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.