Skip to content

Commit

Permalink
bam/lazy/record/read_name: Implement sam::alignment::record::ReadName…
Browse files Browse the repository at this point in the history
… for ReadName
  • Loading branch information
zaeleus committed Dec 14, 2023
1 parent 61b6f65 commit e1dee24
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions noodles-bam/src/lazy/record/read_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ impl<'a> ReadName<'a> {
}
}

impl<'a> sam::alignment::record::ReadName for ReadName<'a> {
fn as_bytes(&self) -> &[u8] {
self.as_bytes()
}
}

impl<'a> AsRef<[u8]> for ReadName<'a> {
fn as_ref(&self) -> &[u8] {
self.0
Expand Down

0 comments on commit e1dee24

Please sign in to comment.