/// Finalizes creation and returns a new `Noise` object.
Finalizes creation and returns a new `Noise` object.
Finalizes creation and returns a new ` Noise ` object .
pub fn init(&self) -> Noise {
        unsafe {
            let noise = Noise {
                noise: ffi::TCOD_noise_new(self.dimensions as i32, self.hurst,
                                           self.lacunarity, *self.random.as_native()),
                dimensions: self.dimensions,
            };
            ffi::TCOD_noise_set_type(noise.noise, self.noise_type.into());
            noise
        }
    }
pub fn init ( & self ) -> Noise { unsafe { let noise = Noise { noise : ffi :: TCOD_noise_new ( self . dimensions as i32 , self . hurst , self . lacunarity , * self . random . as_native ( ) ) , dimensions : self . dimensions , } ; ffi :: TCOD_noise_set_type ( noise . noise , self . noise_type . into ( ) ) ; noise } }
Finalizes creation and returns a new `Noise` object.
Finalizes creation and returns a new ` Noise ` object .
&self