/// Create a named physical unit.
Create a named physical unit.
Create a named physical unit .
fn named_unit(name: &str, abs: usize, rel: Option<(usize, usize)>) -> PhysicalUnit {
    let name = get_name_table().intern(name, false);
    let abs = BigInt::from(abs);
    let rel = rel.map(|(scale, index)| (BigInt::from(scale), index));
    PhysicalUnit::new(name, abs, rel)
}
fn named_unit ( name : & str , abs : usize , rel : Option < ( usize , usize ) > ) -> PhysicalUnit { let name = get_name_table ( ) . intern ( name , false ) ; let abs = BigInt :: from ( abs ) ; let rel = rel . map ( | ( scale , index ) | ( BigInt :: from ( scale ) , index ) ) ; PhysicalUnit :: new ( name , abs , rel ) }
Create a named physical unit.
Create a named physical unit .
name
&str
abs
usize
rel
Option<(usize, usize)>