pub struct ToolkitRoot {
pub path: &'static str,
pub max_depth: usize,
pub dir_filter: &'static [&'static str],
}Expand description
A directory to probe for a bundled toolkit.
Fields§
§path: &'static strAbsolute path to probe.
max_depth: usizeHow many levels to descend below path looking for the toolkit’s
bin_subdir. 0 means path itself IS the toolkit root, so the
tool is looked up at <path>/<bin_subdir>/<tool>.
dir_filter: &'static [&'static str]If non-empty, only descend into subdirectories whose names start
with one of these prefixes. Used to prune wide roots like
/usr/local where only cuda* and nsight-systems* are relevant.
Auto Trait Implementations§
impl Freeze for ToolkitRoot
impl RefUnwindSafe for ToolkitRoot
impl Send for ToolkitRoot
impl Sync for ToolkitRoot
impl Unpin for ToolkitRoot
impl UnsafeUnpin for ToolkitRoot
impl UnwindSafe for ToolkitRoot
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