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

Function int_to_check

crates/stdlib/src/lzma.rs:112–123  ·  view source on GitHub ↗
(check: i32)

Source from the content-addressed store, hash-verified

110 }
111
112 fn int_to_check(check: i32) -> Option<Check> {
113 if check == -1 {
114 return Some(Check::Crc64);
115 }
116 match check {
117 CHECK_NONE => Some(Check::None),
118 CHECK_CRC32 => Some(Check::Crc32),
119 CHECK_CRC64 => Some(Check::Crc64),
120 CHECK_SHA256 => Some(Check::Sha256),
121 _ => None,
122 }
123 }
124
125 fn u32_to_mode(val: u32) -> Option<Mode> {
126 match val as i32 {

Callers 1

init_xzMethod · 0.85

Calls 1

SomeClass · 0.50

Tested by

no test coverage detected