pub struct FileWithReplacedOptsBuilder { /* private fields */ }
Expand description
Builder for FileWithReplacedOpts
.
Implementations§
Source§impl FileWithReplacedOptsBuilder
impl FileWithReplacedOptsBuilder
Sourcepub fn all<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn all<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Replace all occurrences of the pattern.
Sourcepub fn first_from<VALUE: Into<isize>>(&mut self, value: VALUE) -> &mut Self
pub fn first_from<VALUE: Into<isize>>(&mut self, value: VALUE) -> &mut Self
Replace the first match starting from the specified line.
Sourcepub fn build(
&self,
) -> Result<FileWithReplacedOpts, FileWithReplacedOptsBuilderError>
pub fn build( &self, ) -> Result<FileWithReplacedOpts, FileWithReplacedOptsBuilderError>
Trait Implementations§
Source§impl Clone for FileWithReplacedOptsBuilder
impl Clone for FileWithReplacedOptsBuilder
Source§fn clone(&self) -> FileWithReplacedOptsBuilder
fn clone(&self) -> FileWithReplacedOptsBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 FileWithReplacedOptsBuilder
impl RefUnwindSafe for FileWithReplacedOptsBuilder
impl Send for FileWithReplacedOptsBuilder
impl Sync for FileWithReplacedOptsBuilder
impl Unpin for FileWithReplacedOptsBuilder
impl UnwindSafe for FileWithReplacedOptsBuilder
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