Struct moore_vhdl::ty::IntTy
[−]
[src]
pub struct IntTy { pub dir: Dir, pub left_bound: BigInt, pub right_bound: BigInt, }
An integer type.
Fields
dir: Dir
left_bound: BigInt
right_bound: BigInt
Methods
impl IntTy
[src]
fn new(dir: Dir, left_bound: BigInt, right_bound: BigInt) -> IntTy
[src]
Create a new integer type.
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.
fn len(&self) -> BigInt
[src]
The length of the range.
Trait Implementations
impl Debug for IntTy
[src]
impl Clone for IntTy
[src]
fn clone(&self) -> IntTy
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for IntTy
[src]
fn eq(&self, __arg_0: &IntTy) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &IntTy) -> bool
[src]
This method tests for !=
.