[−][src]Trait moore_vhdl::hir::Expr2
An expression.
See IEEE 1076-2008 section 9.
Required methods
fn typeval(
&self,
tyctx: Option<&'t dyn Type>,
ctx: &dyn ExprContext<'t>
) -> Result<&'t dyn Type>
&self,
tyctx: Option<&'t dyn Type>,
ctx: &dyn ExprContext<'t>
) -> Result<&'t dyn Type>
Determine the type of the expression.
fn constant_value(
&self,
ctx: &dyn ExprContext<'t>
) -> Result<&'t dyn Const2<'t>>
&self,
ctx: &dyn ExprContext<'t>
) -> Result<&'t dyn Const2<'t>>
Determine the constant value of the expression.
Emits diagnostic errors if the expression has no constant value.
Implementors
impl<'t> Expr2<'t> for LitExpr
[src]
fn typeval(
&self,
_: Option<&'t dyn Type>,
_: &dyn ExprContext<'t>
) -> Result<&'t dyn Type>
[src]
&self,
_: Option<&'t dyn Type>,
_: &dyn ExprContext<'t>
) -> Result<&'t dyn Type>
fn constant_value(
&self,
ctx: &dyn ExprContext<'t>
) -> Result<&'t dyn Const2<'t>>
[src]
&self,
ctx: &dyn ExprContext<'t>
) -> Result<&'t dyn Const2<'t>>