Struct moore_vhdl::konst2::IntegerConst
source · [−]pub struct IntegerConst<'t> { /* private fields */ }
Expand description
A constant integer value.
Implementations
sourceimpl<'t> IntegerConst<'t>
impl<'t> IntegerConst<'t>
sourcepub 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.
sourcepub fn integer_type(&self) -> &'t dyn IntegerType
pub fn integer_type(&self) -> &'t dyn IntegerType
Return the integer type.
Trait Implementations
sourceimpl<'a, 't> Alloc<'a, 'a, IntegerConst<'t>> for ConstArena<'t> where
't: 'a,
impl<'a, 't> Alloc<'a, 'a, IntegerConst<'t>> for ConstArena<'t> where
't: 'a,
sourcefn alloc(&'a self, value: IntegerConst<'t>) -> &'a mut IntegerConst<'t>
fn alloc(&'a self, value: IntegerConst<'t>) -> &'a mut IntegerConst<'t>
Allocate a value of type T
.
sourceimpl<'t> Clone for IntegerConst<'t>
impl<'t> Clone for IntegerConst<'t>
sourcefn clone(&self) -> IntegerConst<'t>
fn clone(&self) -> IntegerConst<'t>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'t> Const2<'t> for IntegerConst<'t>
impl<'t> Const2<'t> for IntegerConst<'t>
sourcefn into_owned(self) -> OwnedConst<'t>
fn into_owned(self) -> OwnedConst<'t>
Convert into an owned constant.
sourcefn to_owned(&self) -> OwnedConst<'t>
fn to_owned(&self) -> OwnedConst<'t>
Clone this constant.
sourceimpl<'t> Debug for IntegerConst<'t>
impl<'t> Debug for IntegerConst<'t>
sourceimpl<'t> Display for IntegerConst<'t>
impl<'t> Display for IntegerConst<'t>
sourceimpl<'t> PartialEq<IntegerConst<'t>> for IntegerConst<'t>
impl<'t> PartialEq<IntegerConst<'t>> for IntegerConst<'t>
sourcefn eq(&self, other: &IntegerConst<'t>) -> bool
fn eq(&self, other: &IntegerConst<'t>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &IntegerConst<'t>) -> bool
fn ne(&self, other: &IntegerConst<'t>) -> bool
This method tests for !=
.
impl<'t> Eq for IntegerConst<'t>
impl<'t> StructuralEq for IntegerConst<'t>
impl<'t> StructuralPartialEq for IntegerConst<'t>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more