Struct moore_vhdl::ty::PhysicalTy [−][src]
pub struct PhysicalTy {
pub decl: TypeDeclRef,
pub base: IntTy,
pub units: Vec<PhysicalUnit>,
pub primary: usize,
}
Expand description
A physical type.
Fields
decl: TypeDeclRef
The declaration of the physical type.
base: IntTy
The underlying integer type.
units: Vec<PhysicalUnit>
The table of units.
primary: usize
The index of the primary unit.
Implementations
pub fn new(
decl: TypeDeclRef,
base: IntTy,
units: Vec<PhysicalUnit>,
primary: usize
) -> PhysicalTy
pub fn new(
decl: TypeDeclRef,
base: IntTy,
units: Vec<PhysicalUnit>,
primary: usize
) -> PhysicalTy
Create a new physical type.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PhysicalTy
impl Send for PhysicalTy
impl Sync for PhysicalTy
impl Unpin for PhysicalTy
impl UnwindSafe for PhysicalTy
Blanket Implementations
Mutably borrows from an owned value. Read more