Struct llhd::konst::ConstInt
[−]
[src]
pub struct ConstInt { /* fields omitted */ }
A constant integer value.
Methods
impl ConstInt
[src]
fn new(width: usize, value: BigInt) -> ConstInt
[src]
Create a new constant integer.
fn width(&self) -> usize
[src]
Get the width of the constant in bits.
fn value(&self) -> &BigInt
[src]
Get the value of the constant.
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 !=
.