pub fn pretty(&self) -> impl fmt::Display {
        let prefix = match (self.registry.as_ref(), self.group.as_ref()) {
            (Some(reg), _) => format!("{}{}/", reg, self.group()),
            (None, Some(group)) => format!("{}/", group),
            (None, None) => "".to_string(),
        };
        format!("{}{}", prefix, self.name)
    }
/// A printable representation of this `PackageId`
///
/// This displays the most concise representation of this `PackageId` that is still unique.
/// For example, if the registry and group name are default values, this will display only
/// the package name. If the group name is non-standard, it will be printed. If the registry
/// is non-standard, both the registry and the group name will be printed.
A printable representation of this `PackageId`
This displays the most concise representation of this `PackageId` that is still unique.
For example, if the registry and group name are default values, this will display only
the package name. If the group name is non-standard, it will be printed. If the registry
is non-standard, both the registry and the group name will be printed.
A printable representation of this ` PackageId ` This displays the most concise representation of this ` PackageId ` that is still unique . For example if the registry and group name are default values this will display only the package name . If the group name is non - standard it will be printed . If the registry is non - standard both the registry and the group name will be printed .
pub fn pretty(&self) -> impl fmt::Display {
        let prefix = match (self.registry.as_ref(), self.group.as_ref()) {
            (Some(reg), _) => format!("{}{}/", reg, self.group()),
            (None, Some(group)) => format!("{}/", group),
            (None, None) => "".to_string(),
        };
        format!("{}{}", prefix, self.name)
    }
pub fn pretty ( & self ) -> impl fmt :: Display { let prefix = match ( self . registry . as_ref ( ) , self . group . as_ref ( ) ) { ( Some ( reg ) , _ ) => format ! ( " " reg self group ( ) ) , ( None , Some ( group ) ) => format ! ( " " group ) , ( None , None ) => " " . to_string ( ) , } ; format ! ( " " prefix self name ) }
A printable representation of this `PackageId`
This displays the most concise representation of this `PackageId` that is still unique.
A printable representation of this ` PackageId ` This displays the most concise representation of this ` PackageId ` that is still unique .
&self
&self