pub struct FormatAdvice {
pub replacements: Vec<RangeInclusive<u32>>,
}Expand description
A struct to hold clang-format advice for a single file.
Fields§
§replacements: Vec<RangeInclusive<u32>>A list of line ranges that clang-format wants to replace.
Trait Implementations§
Source§impl Clone for FormatAdvice
impl Clone for FormatAdvice
Source§fn clone(&self) -> FormatAdvice
fn clone(&self) -> FormatAdvice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Default for FormatAdvice
impl Default for FormatAdvice
Source§fn default() -> FormatAdvice
fn default() -> FormatAdvice
Returns the “default value” for a type. Read more
impl Eq for FormatAdvice
Source§impl PartialEq for FormatAdvice
impl PartialEq for FormatAdvice
Source§fn eq(&self, other: &FormatAdvice) -> bool
fn eq(&self, other: &FormatAdvice) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.