pub struct FilePrependFixer { /* private fields */ }Expand description
Prepends content to the start of each violating file. Paired with
file_header to inject the required header comment/boilerplate.
If the file starts with a UTF-8 BOM, content is inserted after
the BOM so editors that rely on it don’t break.
Implementations§
Trait Implementations§
Source§impl Debug for FilePrependFixer
impl Debug for FilePrependFixer
Source§impl Fixer for FilePrependFixer
impl Fixer for FilePrependFixer
Auto Trait Implementations§
impl Freeze for FilePrependFixer
impl RefUnwindSafe for FilePrependFixer
impl Send for FilePrependFixer
impl Sync for FilePrependFixer
impl Unpin for FilePrependFixer
impl UnsafeUnpin for FilePrependFixer
impl UnwindSafe for FilePrependFixer
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> 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