Skip to main content

builtin_int_identity

Macro builtin_int_identity 

Source
macro_rules! builtin_int_identity {
    ($self:expr, $args:expr, $call_expr:expr) => { ... };
}
Expand description

Macro for integer identity operations (rounding on integers).

For integers, floor/ceiling/truncate/round are all identity operations.

ยงExample

builtin_int_identity!(self, args, call_expr) extracts one integer and returns it.