pub struct FixApplyResult {
pub content: String,
pub applied: usize,
pub skipped_invalid: usize,
}Expand description
Result of applying fixes to content, with detailed counts.
Fields§
§content: StringContent after applying the fixes
applied: usizeNumber of fixes applied
skipped_invalid: usizeNumber of fixes skipped because they could not be applied: offsets out
of range or not on UTF-8 character boundaries, or a line-based fix
referencing a missing line or old_text (e.g. produced by a buggy
plugin). Does not include fixes skipped due to overlap with an applied
fix.
Trait Implementations§
Source§impl Clone for FixApplyResult
impl Clone for FixApplyResult
Source§fn clone(&self) -> FixApplyResult
fn clone(&self) -> FixApplyResult
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 moreAuto Trait Implementations§
impl Freeze for FixApplyResult
impl RefUnwindSafe for FixApplyResult
impl Send for FixApplyResult
impl Sync for FixApplyResult
impl Unpin for FixApplyResult
impl UnsafeUnpin for FixApplyResult
impl UnwindSafe for FixApplyResult
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