pub struct TidyAdvice {
pub notes: Vec<TidyNotification>,
pub patched: Option<Vec<u8>>,
}
Expand description
A struct to hold notification from clang-tidy about a single file
Fields§
§notes: Vec<TidyNotification>
A list of notifications parsed from clang-tidy stdout.
patched: Option<Vec<u8>>
Trait Implementations§
Source§impl Clone for TidyAdvice
impl Clone for TidyAdvice
Source§fn clone(&self) -> TidyAdvice
fn clone(&self) -> TidyAdvice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TidyAdvice
impl Debug for TidyAdvice
Source§impl MakeSuggestions for TidyAdvice
impl MakeSuggestions for TidyAdvice
Source§fn get_suggestion_help(&self, start_line: u32, end_line: u32) -> String
fn get_suggestion_help(&self, start_line: u32, end_line: u32) -> String
Create some user-facing helpful info about what the suggestion aims to resolve.
Source§fn get_tool_name(&self) -> String
fn get_tool_name(&self) -> String
Get the tool’s name which generated the advice.
Source§fn get_suggestions(
&self,
review_comments: &mut ReviewComments,
file_obj: &FileObj,
patch: &mut Patch<'_>,
summary_only: bool,
) -> Result<()>
fn get_suggestions( &self, review_comments: &mut ReviewComments, file_obj: &FileObj, patch: &mut Patch<'_>, summary_only: bool, ) -> Result<()>
Create a bunch of suggestions from a
FileObj
’s advice’s generated patched
buffer.Auto Trait Implementations§
impl Freeze for TidyAdvice
impl RefUnwindSafe for TidyAdvice
impl Send for TidyAdvice
impl Sync for TidyAdvice
impl Unpin for TidyAdvice
impl UnwindSafe for TidyAdvice
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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