fn from(rec: &Record) -> Self {
        annot::contig::Contig::new(
            rec.chrom.to_string(),
            rec.start as isize,
            (rec.end - rec.start) as usize,
            rec.strand().unwrap_or(strand::Strand::Unknown),
        )
    }
/// Returns a `Contig` annotation for the BED record.
///
/// ```
/// use bio::io::bed;
/// use bio_types::annot::contig::Contig;
/// use bio_types::strand::Strand;
/// let example = b"chr1\t5\t5000\tname1\t0.5";
/// let mut reader = bed::Reader::new(&example[..]);
/// let rec = reader
///     .records()
///     .next()
///     .expect("Found no bed record.")
///     .expect("Got a csv::Error");
/// let loc = Contig::from(&rec);
/// assert_eq!(loc.to_string(), "chr1:5-5000");
/// ```
Returns a `Contig` annotation for the BED record.
Returns a ` Contig ` annotation for the BED record .
fn from(rec: &Record) -> Self {
        annot::contig::Contig::new(
            rec.chrom.to_string(),
            rec.start as isize,
            (rec.end - rec.start) as usize,
            rec.strand().unwrap_or(strand::Strand::Unknown),
        )
    }
fn from ( rec : & Record ) -> Self { annot :: contig :: Contig :: new ( rec . chrom . to_string ( ) , rec . start as isize , ( rec . end - rec . start ) as usize , rec . strand ( ) . unwrap_or ( strand :: Strand :: Unknown ) , ) }
Returns a `Contig` annotation for the BED record.
Returns a ` Contig ` annotation for the BED record .
rec
&Record
rec
&Record