You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: dep_splitter.rs
    path of file: ./repos/turbo/crates/turborepo-repository/src/package_graph
    
    the code of the file until where you have to start completion: use std::{collections::HashMap, fmt};

use turbopath::{AbsoluteSystemPath, AnchoredSystemPathBuf, Relative
    
    fn new(version: &'a str) -> Option<Self> {
        let version = version.strip_prefix("workspace:")?;
        match version.rsplit_once('@') {
            Some((name, "*")) | Some((name, "^")) | Some((name, "~")) => Some(Self::Alias(name)),
            // No indication of different name for the package
            // We want to capture specifiers that have type "directory" by npa which boils down to
            // checking for slashes: https://github.com/pnpm/npm-package-arg/blob/main/npa.js#L79
            Some(_) | None if version.contains('/') => {
                RelativeUnixPath::new(version).ok().map(Self::Path)
            }
            Some(_) | None => None,
        }
    }