pub enum Strategy<'a> {
Which,
Resolve(&'a Path),
EnvVar(&'a str),
}Available on crate feature
fs only.Expand description
Strategy to find a binary
See cu::bin module-level documentation for more info.
Variants§
Which
Find it in PATH (like the which command)
Resolve(&'a Path)
Resolve a provided path
EnvVar(&'a str)
Resolve from path in an environment variable
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Strategy<'a>
impl<'a> RefUnwindSafe for Strategy<'a>
impl<'a> Send for Strategy<'a>
impl<'a> Sync for Strategy<'a>
impl<'a> Unpin for Strategy<'a>
impl<'a> UnsafeUnpin for Strategy<'a>
impl<'a> UnwindSafe for Strategy<'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