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

Method ok_or_else

crates/stdlib/src/zlib.rs:487–492  ·  view source on GitHub ↗
(
            self,
            f: impl FnOnce() -> PyBaseExceptionRef,
        )

Source from the content-addressed store, hash-verified

485 }
486
487 fn ok_or_else(
488 self,
489 f: impl FnOnce() -> PyBaseExceptionRef,
490 ) -> PyResult<flate2::Compression> {
491 self.0.ok_or_else(f)
492 }
493 }
494
495 impl<'a> TryFromBorrowedObject<'a> for Level {

Callers 15

callMethod · 0.80
constructMethod · 0.80
destroyMethod · 0.80
detachMethod · 0.80
try_from_objectMethod · 0.80
txt2objFunction · 0.80
nid2objFunction · 0.80
set_sessionMethod · 0.80
sockMethod · 0.80
recv_intoMethod · 0.80
recvfromMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected