pub fn try_into_vcf_record_info(
        &self,
        header: &vcf::Header,
        string_map: &StringMap,
    ) -> io::Result<vcf::record::Info> {
        use crate::reader::record::read_info;
        let mut reader = &self.buf[..];
        read_info(&mut reader, header.infos(), string_map, self.len())
    }
/// Converts BCF record info to VCF record info.
///
/// # Examples
///
/// ```
/// # use std::io;
/// use noodles_bcf as bcf;
/// use noodles_vcf as vcf;
///
/// let bcf_info = bcf::record::Info::default();
/// let header = vcf::Header::default();
/// let string_map = bcf::header::StringMap::default();
///
/// let vcf_info = bcf_info.try_into_vcf_record_info(&header, &string_map)?;
/// assert!(vcf_info.is_empty());
/// # Ok::<_, io::Error>(())
/// ```
Converts BCF record info to VCF record info.
Converts BCF record info to VCF record info .
pub fn try_into_vcf_record_info(
        &self,
        header: &vcf::Header,
        string_map: &StringMap,
    ) -> io::Result<vcf::record::Info> {
        use crate::reader::record::read_info;
        let mut reader = &self.buf[..];
        read_info(&mut reader, header.infos(), string_map, self.len())
    }
pub fn try_into_vcf_record_info ( & self , header : & vcf :: Header , string_map : & StringMap , ) -> io :: Result < vcf :: record :: Info > { use crate :: reader :: record :: read_info ; let mut reader = & self . buf [ .. ] ; read_info ( & mut reader , header . infos ( ) , string_map , self . len ( ) ) }
Converts BCF record info to VCF record info.
Converts BCF record info to VCF record info .
&self
header
&vcf::Header
string_map
&StringMap
&self
header
&vcf::Header
string_map
&StringMap
examples
None
use std::io;
use noodles_bcf as bcf;
use noodles_vcf as vcf.

let bcf_info = bcf::record::Info::default();
let header = vcf::Header::default();
let string_map = bcf::header::StringMap::default().

let vcf_info = bcf_info.try_into_vcf_record_info(&header, &string_map)?;
assert!(vcf_info.is_empty()).
use noodles_bcf as bcf ; use noodles_vcf as vcf . let bcf_info = bcf :: record :: Info :: default () ; let header = vcf :: Header :: default () ; let string_map = bcf :: header :: StringMap :: default () . let vcf_info = bcf_info . try_into_vcf_record_info ( &header &string_map ) ? ; assert! ( vcf_info . is_empty () ) .
ok::<_, io::error>(())
None