MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / parse_debug_query_number_u64

Function parse_debug_query_number_u64

packages/native/src/debug.rs:63–73  ·  view source on GitHub ↗
(float: f64)

Source from the content-addressed store, hash-verified

61}
62
63pub(crate) fn parse_debug_query_number_u64(float: f64) -> ParseResult<u64> {
64 if !float.is_finite()
65 || float < 0.0
66 || float.fract() != 0.0
67 || float > MAX_SAFE_INTEGER_U64 as f64
68 {
69 return Err(());
70 }
71
72 Ok(float as u64)
73}
74
75fn js_u64(obj: &JsObject, primary: &str, alias: &str) -> ParseResult<Option<u64>> {
76 for name in [primary, alias] {

Callers 1

js_u64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected