cairo_lang_semantic::corelib

Function validate_literal

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

Validates that a given type is valid for a literal and that the value fits the range of the specific type.