[][src]Struct moore_vhdl::konst2::IntegerConst

pub struct IntegerConst<'t> { /* fields omitted */ }

A constant integer value.

Implementations

impl<'t> IntegerConst<'t>[src]

pub fn try_new(
    ty: &'t dyn IntegerType,
    value: BigInt
) -> Result<IntegerConst<'t>, ConstError>
[src]

Create a new constant integer.

Returns an OutOfRange error if the value is outside the type's range.

pub fn integer_type(&self) -> &'t dyn IntegerType[src]

Return the integer type.

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

Return the integer value.

Trait Implementations

impl<'a, 't> Alloc<'a, 'a, IntegerConst<'t>> for ConstArena<'t> where
    't: 'a, 
[src]

impl<'t> Clone for IntegerConst<'t>[src]

impl<'t> Const2<'t> for IntegerConst<'t>[src]

impl<'t> Debug for IntegerConst<'t>[src]

impl<'t> Display for IntegerConst<'t>[src]

impl<'t> Eq for IntegerConst<'t>[src]

impl<'t> PartialEq<IntegerConst<'t>> for IntegerConst<'t>[src]

impl<'t> StructuralEq for IntegerConst<'t>[src]

impl<'t> StructuralPartialEq for IntegerConst<'t>[src]

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

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.