Struct cpp_linter::clang_tools::clang_format::FormatAdvice
source · pub struct FormatAdvice {
pub replacements: Vec<Replacement>,
pub patched: Option<Vec<u8>>,
}
Expand description
A Structure used to deserialize clang-format’s XML output.
Fields§
§replacements: Vec<Replacement>
A list of Replacement
s that clang-tidy wants to make.
patched: Option<Vec<u8>>
Trait Implementations§
source§impl Clone for FormatAdvice
impl Clone for FormatAdvice
source§fn clone(&self) -> FormatAdvice
fn clone(&self) -> FormatAdvice
Returns a copy 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 FormatAdvice
impl Debug for FormatAdvice
source§impl<'de> Deserialize<'de> for FormatAdvice
impl<'de> Deserialize<'de> for FormatAdvice
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MakeSuggestions for FormatAdvice
impl MakeSuggestions for FormatAdvice
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,
)
fn get_suggestions( &self, review_comments: &mut ReviewComments, file_obj: &FileObj, patch: &mut Patch<'_>, summary_only: bool, )
Create a bunch of suggestions from a
FileObj
’s advice’s generated patched
buffer.source§impl PartialEq for FormatAdvice
impl PartialEq for FormatAdvice
impl StructuralPartialEq for FormatAdvice
Auto Trait Implementations§
impl Freeze for FormatAdvice
impl RefUnwindSafe for FormatAdvice
impl Send for FormatAdvice
impl Sync for FormatAdvice
impl Unpin for FormatAdvice
impl UnwindSafe for FormatAdvice
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)