pub enum Choice {
Found,
Path(PathBuf),
Off,
}Expand description
How a tool is picked.
Variants§
Found
Wherever it is found: the PATH, then where its installer puts it.
Path(PathBuf)
This program.
Off
Not used (plain python3, no formatting, no type checks).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Choice
impl<'de> Deserialize<'de> for Choice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Choice
impl StructuralPartialEq for Choice
Auto Trait Implementations§
impl Forget for Choice
impl Freeze for Choice
impl Move for Choice
impl RefUnwindSafe for Choice
impl Send for Choicewhere
RawVecInner: Send,
impl Sync for Choicewhere
RawVecInner: Sync,
impl Unpin for Choice
impl UnsafeUnpin for Choice
impl UnwindSafe for Choicewhere
RawVecInner: UnwindSafe,
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