/// Create a GffType from a string.
///
/// # Arguments
///
/// * `src_str` - The source string to convert to the GffType.
Create a GffType from a string.
Create a GffType from a string .
fn from_str(src_str: &str) -> Result<Self, Self::Err> {
        match src_str {
            "gff3" => Ok(GffType::GFF3),
            "gff2" => Ok(GffType::GFF2),
            "gtf2" => Ok(GffType::GTF2),
            _ => Err(format!(
                "String '{}' is not a valid GFFType (GFF/GTF format version).",
                src_str
            )),
        }
    }
fn from_str ( src_str : & str ) -> Result < Self , Self :: Err > { match src_str { " " => Ok ( GffType :: GFF3 ) , " " => Ok ( GffType :: GFF2 ) , " " => Ok ( GffType :: GTF2 ) , _ => Err ( format ! ( " " src_str ) ) , } }
Create a GffType from a string.
Create a GffType from a string .
src_str
&str