pub fn map<F>(&mut self, mut f: F)
    where T: Clone + Copy,
        F: FnMut(T) -> T
    {
        for i in 0..self.size{
            self[i] = f(self[i])
        }
    }
/// Applies a function to each element in the buffer without consuming the buffer.
Applies a function to each element in the buffer without consuming the buffer.
Applies a function to each element in the buffer without consuming the buffer .
pub fn map<F>(&mut self, mut f: F)
    where T: Clone + Copy,
        F: FnMut(T) -> T
    {
        for i in 0..self.size{
            self[i] = f(self[i])
        }
    }
pub fn map < F > ( & mut self , mut f : F ) where T : Clone + Copy , F : FnMut ( T ) -> T { for i in 0 .. self . size { self [ i ] = f ( self [ i ] ) } }
Applies a function to each element in the buffer without consuming the buffer.
Applies a function to each element in the buffer without consuming the buffer .
&mut self
f
F
&mut self
f
F