[][src]Struct rust_htslib::sam::Writer

pub struct Writer { /* fields omitted */ }

SAM writer.

Methods

impl Writer[src]

pub fn from_path<P: AsRef<Path>>(
    path: P,
    header: &Header
) -> Result<Self, WriterError>
[src]

Create new SAM file writer.

Arguments

  • path - the path.
  • header - header definition to use

pub fn from_stdout(header: &Header) -> Result<Self, WriterError>[src]

Create a new SAM file at STDOUT.

Arguments

  • header - header definition to use

pub fn write(&mut self, record: &Record) -> Result<(), WriteError>[src]

Write record to SAM.

Arguments

  • record - the record to write

Trait Implementations

impl Drop for Writer[src]

impl Debug for Writer[src]

Auto Trait Implementations

impl !Send for Writer

impl !Sync for Writer

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]