Struct noodles_sam::header::Parser
source · pub struct Parser { /* private fields */ }
Expand description
A SAM header parser.
Implementations§
source§impl Parser
impl Parser
sourcepub fn parse_partial(&mut self, src: &[u8]) -> Result<(), ParseError>
pub fn parse_partial(&mut self, src: &[u8]) -> Result<(), ParseError>
Parses and adds a raw record to the header.
§Examples
use noodles_sam as sam;
let mut parser = sam::header::Parser::default();
parser.parse_partial(b"@HD\tVN:1.6")?;
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parser
impl RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl UnwindSafe for Parser
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