INNER CODE UNIT · Rust

default

informationsea/transanno · liftover-rs/src/chain/mod.rs:27

    fn default() -> Self {
        Strand::Forward
    }
}

impl FromStr for Strand {
    type Err = LiftOverError;
    fn from_str(s: &str) -> Result<Self, LiftOverError> {
        match s {
            "+" => Ok(Strand::Forward),
            "-" => Ok(Strand::Reverse),
            _ => Err(LiftOverError::ParseStrandError),
        }
    }
}

impl Display for Strand {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…