Struct moore_vhdl::konst2::IntegerConst [−][src]
pub struct IntegerConst<'t> { /* fields omitted */ }
Expand description
A constant integer value.
Implementations
pub fn try_new(
ty: &'t dyn IntegerType,
value: BigInt
) -> Result<IntegerConst<'t>, ConstError>
pub fn try_new(
ty: &'t dyn IntegerType,
value: BigInt
) -> Result<IntegerConst<'t>, ConstError>
Create a new constant integer.
Returns an OutOfRange
error if the value is outside the type’s range.
Return the integer type.
Trait Implementations
Allocate a value of type T
.
Convert into an owned constant.
Clone this constant.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'t> !RefUnwindSafe for IntegerConst<'t>
impl<'t> !Send for IntegerConst<'t>
impl<'t> !Sync for IntegerConst<'t>
impl<'t> Unpin for IntegerConst<'t>
impl<'t> !UnwindSafe for IntegerConst<'t>
Blanket Implementations
Mutably borrows from an owned value. Read more