MCPcopy Index your code
hub / github.com/RustPython/RustPython / to_usize

Method to_usize

crates/vm/src/stdlib/_io.rs:223–225  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

221 impl OptionalSize {
222 #[allow(clippy::wrong_self_convention)]
223 pub fn to_usize(self) -> Option<usize> {
224 self.size?.to_usize()
225 }
226
227 pub fn try_usize(self, vm: &VirtualMachine) -> PyResult<Option<usize>> {
228 self.size

Callers 15

shell_execFunction · 0.45
get_rangeMethod · 0.45
tabsizeMethod · 0.45
py_zfillMethod · 0.45
key_eqMethod · 0.45
setrecursionlimitFunction · 0.45
lastgroupMethod · 0.45
getMethod · 0.45
readMethod · 0.45
readlineMethod · 0.45
readMethod · 0.45
read1Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected