MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / as_i128

Method as_i128

compiler/src/modules/vm/ops.rs:567–569  ·  view source on GitHub ↗
(&self, v: Val)

Source from the content-addressed store, hash-verified

565 /* Method wrapper around the free `as_i128` for borrow-checker ergonomics. */
566 #[inline]
567 pub(crate) fn as_i128(&self, v: Val) -> Option<i128> {
568 as_i128(v, &self.heap)
569 }
570
571 pub(crate) fn to_f64_coerce(&self, v: Val) -> Result<f64, VmErr> {
572 if v.is_int() { return Ok(v.as_int() as f64); }

Callers 15

exec_negMethod · 0.80
exec_posMethod · 0.80
exec_modMethod · 0.80
exec_floordivMethod · 0.80
handle_bitwiseMethod · 0.80
exec_shlMethod · 0.80
exec_shrMethod · 0.80
call_int_to_bytesMethod · 0.80
call_absMethod · 0.80
call_intMethod · 0.80
call_roundMethod · 0.80
call_rangeMethod · 0.80

Calls 1

as_i128Function · 0.85

Tested by

no test coverage detected