/// Mapping resource to its super/sub type randomly
Mapping resource to its super/sub type randomly
Mapping resource to its super / sub type randomly
fn res_mapping<'a>(target: &'a Target, rng: &mut RngType, kind: &'a ResKind) -> &'a ResKind {
    if target.res_output_syscall(kind).is_empty() || rng.gen_ratio(1, 10) {
        do_res_mapping(target, rng, kind)
    } else {
        kind
    }
}
fn res_mapping < ' a > ( target : & ' a Target , rng : & mut RngType , kind : & ' a ResKind ) -> & ' a ResKind { if target . res_output_syscall ( kind ) . is_empty ( ) || rng . gen_ratio ( 1 , 10 ) { do_res_mapping ( target , rng , kind ) } else { kind } }
Mapping resource to its super/sub type randomly
Mapping resource to its super / sub type randomly
target
&'a Target
rng
&mut RngType
kind
&'a ResKind