[][src]Struct moore_vhdl::ty::PhysicalUnit

pub struct PhysicalUnit {
    pub name: Name,
    pub abs: BigInt,
    pub rel: Option<(BigInt, usize)>,
}

A unit of a physical type.

Fields

name: Name

The name of the unit.

abs: BigInt

The scale of the unit with respect to the physical type's primary unit.

rel: Option<(BigInt, usize)>

The scale of the unit with respect to another unit.

Implementations

impl PhysicalUnit[src]

pub fn new(
    name: Name,
    abs: BigInt,
    rel: Option<(BigInt, usize)>
) -> PhysicalUnit
[src]

Create a new unit for a physical type.

Trait Implementations

impl Clone for PhysicalUnit[src]

impl Debug for PhysicalUnit[src]

impl Eq for PhysicalUnit[src]

impl PartialEq<PhysicalUnit> for PhysicalUnit[src]

impl StructuralEq for PhysicalUnit[src]

impl StructuralPartialEq for PhysicalUnit[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.