pub struct FileCreateFixer { /* private fields */ }Expand description
Creates a file with pre-declared content. Target path is set at
rule-build time (either explicit fix.file_create.path or the
rule’s first literal paths: entry). Content is either inline
or read at apply time from a path-relative-to-root.
Implementations§
Source§impl FileCreateFixer
impl FileCreateFixer
pub fn new( path: PathBuf, source: ContentSourceSpec, create_parents: bool, ) -> Self
Trait Implementations§
Source§impl Debug for FileCreateFixer
impl Debug for FileCreateFixer
Source§impl Fixer for FileCreateFixer
impl Fixer for FileCreateFixer
Auto Trait Implementations§
impl Freeze for FileCreateFixer
impl RefUnwindSafe for FileCreateFixer
impl Send for FileCreateFixer
impl Sync for FileCreateFixer
impl Unpin for FileCreateFixer
impl UnsafeUnpin for FileCreateFixer
impl UnwindSafe for FileCreateFixer
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