pub fn new(
        decl: TypeDeclRef,
        base: IntTy,
        units: Vec<PhysicalUnit>,
        primary: usize,
    ) -> PhysicalTy {
        PhysicalTy {
            decl: decl,
            base: base,
            units: units,
            primary: primary,
        }
    }
/// Create a new physical type.
Create a new physical type.
Create a new physical type .
pub fn new(
        decl: TypeDeclRef,
        base: IntTy,
        units: Vec<PhysicalUnit>,
        primary: usize,
    ) -> PhysicalTy {
        PhysicalTy {
            decl: decl,
            base: base,
            units: units,
            primary: primary,
        }
    }
pub fn new ( decl : TypeDeclRef , base : IntTy , units : Vec < PhysicalUnit > , primary : usize , ) -> PhysicalTy { PhysicalTy { decl : decl , base : base , units : units , primary : primary , } }
Create a new physical type.
Create a new physical type .
decl
TypeDeclRef
base
IntTy
units
Vec<PhysicalUnit>
primary
usize
decl
TypeDeclRef
base
IntTy
units
Vec<PhysicalUnit>
primary
usize