pub struct FixResult {
pub path: PathBuf,
pub original: String,
pub fixed: String,
pub applied: Vec<String>,
}Expand description
Result of applying fixes to a file.
§Line endings
Both original and fixed hold LF-normalized content (CRLF and lone CR are
converted to LF before fixes are applied). Files on disk that used CRLF endings
will be written back with LF endings as a side effect of fix application. This is
intentional and consistent with the rest of the validation pipeline.
Fields§
§path: PathBufPath to the file
original: StringOriginal file content (LF-normalized; may differ from raw on-disk bytes for CRLF files)
fixed: StringContent after fixes applied (LF-normalized)
applied: Vec<String>Descriptions of applied fixes
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FixResult
impl RefUnwindSafe for FixResult
impl Send for FixResult
impl Sync for FixResult
impl Unpin for FixResult
impl UnsafeUnpin for FixResult
impl UnwindSafe for FixResult
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> 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