Enum moore_vhdl::konst::Const
[−]
[src]
pub enum Const { Null, Int(ConstInt), Float(ConstFloat), Enum(ConstEnum), IntRange(ConstIntRange), FloatRange(ConstFloatRange), }
A constant value.
Variants
Null
Int(ConstInt)
Float(ConstFloat)
Enum(ConstEnum)
IntRange(ConstIntRange)
FloatRange(ConstFloatRange)
Methods
impl Const
[src]
fn negate(self) -> Const
[src]
fn kind_desc(&self) -> &'static str
[src]
Provide a textual description of the kind of constant.
Trait Implementations
impl Debug for Const
[src]
impl Clone for Const
[src]
fn clone(&self) -> Const
[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 Const
[src]
fn eq(&self, __arg_0: &Const) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Const) -> bool
[src]
This method tests for !=
.
impl Eq for Const
[src]
impl From<ConstInt> for Const
[src]
impl From<ConstFloat> for Const
[src]
fn from(k: ConstFloat) -> Const
[src]
Performs the conversion.
impl From<ConstEnum> for Const
[src]
impl From<ConstIntRange> for Const
[src]
fn from(k: ConstIntRange) -> Const
[src]
Performs the conversion.
impl From<ConstFloatRange> for Const
[src]
fn from(k: ConstFloatRange) -> Const
[src]
Performs the conversion.