pub struct OutputWriter { /* private fields */ }Implementations§
Source§impl OutputWriter
impl OutputWriter
pub fn new(writer: Box<dyn Write>) -> Self
pub fn bytes_written(&self) -> usize
pub fn write_file_content(&mut self, path: &str, content: &str) -> Result<()>
pub fn write_file_content_with_mode( &mut self, path: &str, content: &str, mode: Option<&str>, ) -> Result<()>
pub fn write_summary(&mut self, stats: &Statistics) -> Result<()>
pub fn write_file_path(&mut self, path: &str) -> Result<()>
Auto Trait Implementations§
impl Freeze for OutputWriter
impl !RefUnwindSafe for OutputWriter
impl !Send for OutputWriter
impl !Sync for OutputWriter
impl Unpin for OutputWriter
impl !UnwindSafe for OutputWriter
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