pub fn try_finish(&mut self) -> io::Result<()> {
        self.flush()?;
        let eof_container = Container::eof();
        write_container(&mut self.inner, &eof_container)
    }
/// Attempts to finish the output stream by writing any pending containers and a final EOF
/// container.
///
/// This is typically only manually called if the underlying stream is needed before the writer
/// is dropped.
///
/// # Examples
///
/// ```
/// # use std::io;
/// use noodles_cram as cram;
/// let mut writer = cram::Writer::new(Vec::new(), Vec::new());
/// writer.try_finish()?;
/// # Ok::<(), io::Error>(())
/// ```
Attempts to finish the output stream by writing any pending containers and a final EOF
container.

This is typically only manually called if the underlying stream is needed before the writer
is dropped.
Attempts to finish the output stream by writing any pending containers and a final EOF container . This is typically only manually called if the underlying stream is needed before the writer is dropped .
pub fn try_finish(&mut self) -> io::Result<()> {
        self.flush()?;
        let eof_container = Container::eof();
        write_container(&mut self.inner, &eof_container)
    }
pub fn try_finish ( & mut self ) -> io :: Result < ( ) > { self . flush ( ) ? ; let eof_container = Container :: eof ( ) ; write_container ( & mut self . inner , & eof_container ) }
Attempts to finish the output stream by writing any pending containers and a final EOF
container.
Attempts to finish the output stream by writing any pending containers and a final EOF container .
&mut self
&mut self
examples
None
use std::io;
use noodles_cram as cram;
let mut writer = cram::Writer::new(Vec::new(), Vec::new());
writer.try_finish()?.
use noodles_cram as cram ; let mut writer = cram :: Writer :: new ( Vec :: new () Vec :: new () ) ; writer . try_finish () ? .
ok::<(), io::error>(())
None