pub fn vmo_flags_to_rights(vmo_flags: u32) -> zx::Rights {
    // Map VMO flags to their respective rights.
    let mut rights = zx::Rights::NONE;
    if vmo_flags & VMO_FLAG_READ != 0 {
        rights |= zx::Rights::READ;
    }
    if vmo_flags & VMO_FLAG_WRITE != 0 {
        rights |= zx::Rights::WRITE;
    }
    if vmo_flags & VMO_FLAG_EXEC != 0 {
        rights |= zx::Rights::EXECUTE;
    }

    rights
}
/// Converts the set of validated VMO flags to their respective zx::Rights.
Converts the set of validated VMO flags to their respective zx::Rights.
Converts the set of validated VMO flags to their respective zx :: Rights .
pub fn vmo_flags_to_rights(vmo_flags: u32) -> zx::Rights {
    // Map VMO flags to their respective rights.
    let mut rights = zx::Rights::NONE;
    if vmo_flags & VMO_FLAG_READ != 0 {
        rights |= zx::Rights::READ;
    }
    if vmo_flags & VMO_FLAG_WRITE != 0 {
        rights |= zx::Rights::WRITE;
    }
    if vmo_flags & VMO_FLAG_EXEC != 0 {
        rights |= zx::Rights::EXECUTE;
    }
    rights
}
pub fn vmo_flags_to_rights ( vmo_flags : u32 ) -> zx :: Rights { // Map VMO flags to their respective rights. let mut rights = zx :: Rights :: NONE ; if vmo_flags & VMO_FLAG_READ != 0 { rights |= zx :: Rights :: READ ; } if vmo_flags & VMO_FLAG_WRITE != 0 { rights |= zx :: Rights :: WRITE ; } if vmo_flags & VMO_FLAG_EXEC != 0 { rights |= zx :: Rights :: EXECUTE ; } rights }
Converts the set of validated VMO flags to their respective zx::Rights.
Converts the set of validated VMO flags to their respective zx :: Rights .
vmo_flags
u32
vmo_flags
u32