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

Function get_permissions

crates/vm/src/stdlib/posix.rs:404–410  ·  view source on GitHub ↗
(mode: u32)

Source from the content-addressed store, hash-verified

402 }
403
404 const fn get_permissions(mode: u32) -> Permissions {
405 Permissions {
406 is_readable: mode & 4 != 0,
407 is_writable: mode & 2 != 0,
408 is_executable: mode & 1 != 0,
409 }
410 }
411
412 fn get_right_permission(
413 mode: u32,

Callers 1

get_right_permissionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected