Function index_many::_doc_assembly::unwrap_option_generic[][src]

pub unsafe fn unwrap_option_generic(
    slice: &mut [Elem],
    indices: [usize; 3]
) -> [&mut Elem; 3]
Expand description

Body: { generic::get_many_mut(slice, indices).unwrap() }

Assembly (x86_64)

codegen_crate::unwrap_option_generic:
 sub     rsp, 40
 mov     r10, qword, ptr, [r9, +, 16]
 cmp     r10, r8
 jae     .LBB0_3
 mov     r8, qword, ptr, [r9]
 mov     rax, qword, ptr, [r9, +, 8]
 cmp     r8, rax
 jae     .LBB0_3
 cmp     rax, r10
 jae     .LBB0_3
 lea     r8, [rdx, +, 8*r8]
 lea     rax, [rdx, +, 8*rax]
 lea     rdx, [rdx, +, 8*r10]
 mov     qword, ptr, [rcx], r8
 mov     qword, ptr, [rcx, +, 8], rax
 mov     qword, ptr, [rcx, +, 16], rdx
 mov     rax, rcx
 add     rsp, 40
 ret
.LBB0_3:
 lea     rcx, [rip, +, __unnamed_1]
 lea     r8, [rip, +, __unnamed_2]
 mov     edx, 43
 call    core::panicking::panic
 ud2