cairo_lang_semantic::items::constant

Function value_as_const_value

source
pub fn value_as_const_value(
    db: &dyn SemanticGroup,
    ty: TypeId,
    value: &BigInt,
) -> Result<ConstValue, LiteralError>
Expand description

creates a ConstValue from a BigInt value.