pub struct ToolkitAnchor {
pub bin: &'static str,
pub walk_up: usize,
}Expand description
Anchor a toolkit lookup to a binary that IS on $PATH. When set,
find_bundled_tool canonicalizes the anchor binary and walks up the
directory tree looking for a sibling <bin_subdir>/<tool>.
Fields§
§bin: &'static strName of the binary (e.g. "nsys").
walk_up: usizeHow many parent levels to walk above the resolved anchor before giving up. Typical nsys-style layouts require 1 (grandparent).
Auto Trait Implementations§
impl Freeze for ToolkitAnchor
impl RefUnwindSafe for ToolkitAnchor
impl Send for ToolkitAnchor
impl Sync for ToolkitAnchor
impl Unpin for ToolkitAnchor
impl UnsafeUnpin for ToolkitAnchor
impl UnwindSafe for ToolkitAnchor
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> 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