Function m4ri_sys::mzd_init_window_const[][src]

pub unsafe fn mzd_init_window_const(
    matrix: *const Mzd,
    lowr: Rci,
    lowc: Rci,
    highr: Rci,
    highc: Rci
) -> *const Mzd

Create a const window/view into a const matrix

Note that this function still allocates a new Mzd struct that needs to be dropped. You must call mzd_free_window_const.

Also, this function copies a bunch of references As a result, you could get multiple mut references into the same memory. This is very unsafe if not used properly.