noodles_bcf/record/codec/encoder/site/info/
field.rs1mod key;
2mod value;
3
4use std::io::{self, Write};
5
6use noodles_vcf::{header::string_maps::StringStringMap, variant::record::info::field::Value};
7
8use self::{key::write_key, value::write_value};
9
10pub(super) fn write_field<W>(
11 writer: &mut W,
12 string_string_map: &StringStringMap,
13 key: &str,
14 value: Option<Value<'_>>,
15) -> io::Result<()>
16where
17 W: Write,
18{
19 write_key(writer, string_string_map, key)?;
20 write_value(writer, value)?;
21 Ok(())
22}