[][src]Function grid_trait::grid3::reader_writer

pub fn reader_writer<I, R, T, Fr, Fw>(
    referent: R,
    reader: Fr,
    writer: Fw
) -> KolmoRwGrid3<I, R, T, Fr, Fw> where
    I: From<Vector3<i32>>,
    Fr: Fn(I, &R) -> &T,
    Fw: Fn(I, &mut R) -> &mut T, 

Read/write through closures.

This is a powerful type, which acts like a combination of ref_fn and mut_fn. This grid owns a referent value, and contains a reader and writer function which immutable and mutable (respectively) borrow the elements from the referent.