pub struct FileStatusBuilder { /* private fields */ }
Expand description
Builder for creating a new reference.
Implementations§
Source§impl FileStatusBuilder
impl FileStatusBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new instance of the builder. The new instance will default to an empty file status.
Sourcepub fn push_delta(self, delta: Delta) -> Self
pub fn push_delta(self, delta: Delta) -> Self
Push a Delta
.
Sourcepub const fn destination_is_binary(self, binary: bool) -> Self
pub const fn destination_is_binary(self, binary: bool) -> Self
Set if the destination is binary.
Sourcepub const fn destination_mode(self, mode: FileMode) -> Self
pub const fn destination_mode(self, mode: FileMode) -> Self
Set the destination file mode.
Sourcepub fn destination_path<F: AsRef<Path>>(self, path: F) -> Self
pub fn destination_path<F: AsRef<Path>>(self, path: F) -> Self
Set the destination file path.
Sourcepub const fn largest_new_line_number(self, largest_new_line_number: u32) -> Self
pub const fn largest_new_line_number(self, largest_new_line_number: u32) -> Self
Set the largest new line number.
Sourcepub const fn largest_old_line_number(self, largest_old_line_number: u32) -> Self
pub const fn largest_old_line_number(self, largest_old_line_number: u32) -> Self
Set the largest old line number.
Sourcepub const fn source_is_binary(self, binary: bool) -> Self
pub const fn source_is_binary(self, binary: bool) -> Self
Set if the source is binary.
Sourcepub const fn source_mode(self, mode: FileMode) -> Self
pub const fn source_mode(self, mode: FileMode) -> Self
Set if the source file mode.
Sourcepub fn source_path<F: AsRef<Path>>(self, path: F) -> Self
pub fn source_path<F: AsRef<Path>>(self, path: F) -> Self
Set the destination file path.
Sourcepub fn build(self) -> FileStatus
pub fn build(self) -> FileStatus
Build the FileStatus
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileStatusBuilder
impl RefUnwindSafe for FileStatusBuilder
impl Send for FileStatusBuilder
impl Sync for FileStatusBuilder
impl Unpin for FileStatusBuilder
impl UnwindSafe for FileStatusBuilder
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