MCPcopy Create free account
hub / github.com/hashintel/hash / as_usize

Method as_usize

libs/@local/hashql/core/src/value/primitive/integer.rs:227–229  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

225 /// ```
226 #[must_use]
227 pub fn as_usize(self) -> Option<usize> {
228 usize::from_lexical_with_options::<{ format::JSON }>(self.value.as_bytes(), &PARSE).ok()
229 }
230
231 /// Attempts to convert the integer literal to a signed 8-bit integer.
232 ///

Callers 15

updateMethod · 0.45
get_entryMethod · 0.45
access_by_indexMethod · 0.45
newMethod · 0.45
is_small_path_graphFunction · 0.45
immediate_dominatorMethod · 0.45
dominatesMethod · 0.45
compute_access_timeFunction · 0.45
update_low_linkMethod · 0.45
metadata_self_loopFunction · 0.45
metadata_dag_propagationFunction · 0.45
metadata_single_cycleFunction · 0.45

Calls 1

as_bytesMethod · 0.45

Tested by 15

newMethod · 0.36
metadata_self_loopFunction · 0.36
metadata_dag_propagationFunction · 0.36
metadata_single_cycleFunction · 0.36
metadata_nested_cyclesFunction · 0.36
metadata_isolationFunction · 0.36
metadata_complex_graphFunction · 0.36
condensation_is_dagFunction · 0.36
check_iterFunction · 0.36