INNER CODE UNIT · Rust
fmt
google/best · src/stats.rs:147
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {
Self::QLen(step) => write!(f, "q_len:{}", step),
Self::SubreadPasses(step) => write!(f, "subread_passes:{}", step),
Self::MapQ(step) => write!(f, "mapq:{}", step),
Self::MeanQual(step) => write!(f, "mean_qual:{}", step),
Self::GcContent(step) => write!(f, "gc_content:{}", step),
Self::ConcordanceQv(step) => write!(f, "concordance_qv:{}", step),
}
}
}
impl FromStr for BinType {
type Err = Box<dyn std::error::Error>;
fn from_str(s: &str) -> Result<Self, Self::Err> {
let mut split = s.split(':');
let a = split