pub fn from_short_name(name: &str) -> Option<PackageType> {
    // Other types we may eventually want to support: apk.
    match name {
      "deb" => Some(PackageType::Deb),
      "ios" => Some(PackageType::IosBundle),
      #[cfg(target_os = "windows")]
      "msi" => Some(PackageType::WindowsMsi),
      "osx" => Some(PackageType::OsxBundle),
      "rpm" => Some(PackageType::Rpm),
      "appimage" => Some(PackageType::AppImage),
      "dmg" => Some(PackageType::Dmg),
      _ => None,
    }
  }
/// Maps a short name to a PackageType.
/// Possible values are "deb", "ios", "msi", "osx", "rpm", "appimage", "dmg".
Maps a short name to a PackageType.
Maps a short name to a PackageType .
pub fn from_short_name(name: &str) -> Option<PackageType> {
    // Other types we may eventually want to support: apk.
    match name {
      "deb" => Some(PackageType::Deb),
      "ios" => Some(PackageType::IosBundle),
      #[cfg(target_os = "windows")]
      "msi" => Some(PackageType::WindowsMsi),
      "osx" => Some(PackageType::OsxBundle),
      "rpm" => Some(PackageType::Rpm),
      "appimage" => Some(PackageType::AppImage),
      "dmg" => Some(PackageType::Dmg),
      _ => None,
    }
  }
pub fn from_short_name ( name : & str ) -> Option < PackageType > { // Other types we may eventually want to support: apk. match name { " " => Some ( PackageType :: Deb ) , " " => Some ( PackageType :: IosBundle ) , # [ cfg ( target_os " " ) ] " " => Some ( PackageType :: WindowsMsi ) , " " => Some ( PackageType :: OsxBundle ) , " " => Some ( PackageType :: Rpm ) , " " => Some ( PackageType :: AppImage ) , " " => Some ( PackageType :: Dmg ) , _ => None , } }
Maps a short name to a PackageType.
Maps a short name to a PackageType .
name
&str
name
&str