Expr::int
pub fn int() -> Option<int> Import
Source: use macro::{Expr}; compiler/src/prelude/macro.hy The argument’s value when it is an integer constant: 3, -2, 2 * 21. Names are not looked up (macros run before typechecking).
Called on a Expr value as value.int(…).
Returns#
Option<int>
See also#
Expr: A function-style macro argument as written:f(1),a + b,"text".Expr::str: The source text as written.Expr::src: The source to splice: parenthesized unless it is a single term, so${a} * 2keepsawhole.Expr::kindExpr::is_literalExpr::is_identExpr::float: The value of a float constant (2.5,-1.0e3), or of an integer one.Expr::bool: The value of atrue/falseconstant.