pub enum ClangTool {
ClangTidy,
ClangFormat,
}Variants§
Implementations§
Source§impl ClangTool
impl ClangTool
Sourcepub const fn as_str(&self) -> &'static str
pub const fn as_str(&self) -> &'static str
Get the string representation of the clang tool’s name.
Sourcepub fn get_exe_path(&self, version: &RequestedVersion) -> Result<PathBuf>
pub fn get_exe_path(&self, version: &RequestedVersion) -> Result<PathBuf>
Fetch the path to an executable clang tool for the specified version.
If the executable is not found using the specified version, then the tool is
sought only by it’s name (Self::as_str()).
The only reason this function would return an error is if the specified tool is not
installed or present on the system (nor in the PATH environment variable).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClangTool
impl RefUnwindSafe for ClangTool
impl Send for ClangTool
impl Sync for ClangTool
impl Unpin for ClangTool
impl UnwindSafe for ClangTool
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.