Struct noodles::sam::header::record::Record [−][src]
pub struct Record { /* fields omitted */ }
Expand description
A generic SAM header record.
Implementations
Creates a generic SAM header record.
Examples
use noodles_sam::header::{record::{Kind, Value}, Record};
let record = Record::new(Kind::Comment, Value::String(String::from("noodles-sam")));
Returns the kind of the record.
Examples
use noodles_sam::header::{record::{Kind, Value}, Record};
let record = Record::new(Kind::Comment, Value::String(String::from("noodles-sam")));
assert_eq!(record.kind(), Kind::Comment);
Trait Implementations
type Error = TryFromRecordError
type Error = TryFromRecordError
The type returned in the event of a conversion error.
pub fn try_from(
record: Record
) -> Result<ReferenceSequence, <ReferenceSequence as TryFrom<Record>>::Error>
pub fn try_from(
record: Record
) -> Result<ReferenceSequence, <ReferenceSequence as TryFrom<Record>>::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Record
impl UnwindSafe for Record
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.