[][src]Struct moore_vhdl::ty::IntTy

pub struct IntTy {
    pub dir: Dir,
    pub left_bound: BigInt,
    pub right_bound: BigInt,
}

An integer type.

Fields

dir: Dirleft_bound: BigIntright_bound: BigInt

Implementations

impl IntTy[src]

pub fn new(dir: Dir, left_bound: BigInt, right_bound: BigInt) -> IntTy[src]

Create a new integer type.

pub fn maybe_null(self) -> Ty[src]

Map the type to itself if the range has a positive length, or to null if the range has a negative or zero length.

pub fn len(&self) -> BigInt[src]

The length of the range.

Trait Implementations

impl Clone for IntTy[src]

impl Debug for IntTy[src]

impl Display for IntTy[src]

impl Eq for IntTy[src]

impl From<IntTy> for Ty[src]

impl PartialEq<IntTy> for IntTy[src]

impl StructuralEq for IntTy[src]

impl StructuralPartialEq for IntTy[src]

Auto Trait Implementations

impl RefUnwindSafe for IntTy

impl Send for IntTy

impl Sync for IntTy

impl Unpin for IntTy

impl UnwindSafe for IntTy

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> ToString for T where
    T: Display + ?Sized
[src]

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.