pub struct SeqHeader {
pub id: String,
pub file_index: usize,
pub reads_index: usize,
pub format: SeqFormat,
}Expand description
Represents the header information of a sequence.
§Examples
use seqkmer::{SeqHeader, SeqFormat};
let header = SeqHeader {
id: "seq1".to_string(),
file_index: 0,
reads_index: 1,
format: SeqFormat::Fasta,
};
assert_eq!(header.id, "seq1");
assert_eq!(header.file_index, 0);
assert_eq!(header.reads_index, 1);
assert_eq!(header.format, SeqFormat::Fasta);Fields§
§id: String§file_index: usize§reads_index: usize§format: SeqFormatTrait Implementations§
impl Eq for SeqHeader
impl StructuralPartialEq for SeqHeader
Auto Trait Implementations§
impl Freeze for SeqHeader
impl RefUnwindSafe for SeqHeader
impl Send for SeqHeader
impl Sync for SeqHeader
impl Unpin for SeqHeader
impl UnwindSafe for SeqHeader
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)