fn shortened_subnet_string(subnet: &SubnetDescriptor) -> String {
    match *subnet {
        SubnetDescriptor::Id(pid) => shortened_pid_string(&pid),
        SubnetDescriptor::Index(i) => format!("{}", i),
    }
}
/// Shortens the id of the provided subent to make it easier to display.
Shortens the id of the provided subent to make it easier to display.
Shortens the id of the provided subent to make it easier to display .
fn shortened_subnet_string(subnet: &SubnetDescriptor) -> String {
    match *subnet {
        SubnetDescriptor::Id(pid) => shortened_pid_string(&pid),
        SubnetDescriptor::Index(i) => format!("{}", i),
    }
}
fn shortened_subnet_string ( subnet : & SubnetDescriptor ) -> String { match * subnet { SubnetDescriptor :: Id ( pid ) => shortened_pid_string ( & pid ) , SubnetDescriptor :: Index ( i ) => format ! ( " " i ) , } }
Shortens the id of the provided subent to make it easier to display.
Shortens the id of the provided subent to make it easier to display .
subnet
&SubnetDescriptor
subnet
&SubnetDescriptor