Struct moore_vhdl::konst::ConstInt
[−]
[src]
pub struct ConstInt { pub ty: Option<IntTy>, pub value: BigInt, }
A constant integer value.
Fields
ty: Option<IntTy>
The type of the constant. If None
, the constant is assumed to be an
unbounded integer which cannot be mapped to LLHD.
value: BigInt
The value of the constant.
Methods
impl ConstInt
[src]
fn new(ty: Option<IntTy>, value: BigInt) -> ConstInt
[src]
Create a new constant integer.
fn negate(self) -> ConstInt
[src]
Trait Implementations
impl Debug for ConstInt
[src]
impl Clone for ConstInt
[src]
fn clone(&self) -> ConstInt
[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 ConstInt
[src]
fn eq(&self, __arg_0: &ConstInt) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ConstInt) -> bool
[src]
This method tests for !=
.