Struct noise::utils::NoiseImage
source · pub struct NoiseImage { /* private fields */ }
Implementations§
source§impl NoiseImage
impl NoiseImage
pub fn new(width: usize, height: usize) -> Self
pub fn iter(&self) -> Iter<'_, Color>
pub fn iter_mut(&mut self) -> IterMut<'_, Color>
pub fn set_size(self, width: usize, height: usize) -> Self
pub fn set_border_color(self, color: Color) -> Self
pub fn set_value(&mut self, x: usize, y: usize, value: Color)
pub fn size(&self) -> (usize, usize)
pub fn border_color(&self) -> Color
pub fn get_value(&self, x: usize, y: usize) -> Color
Trait Implementations§
source§impl Default for NoiseImage
impl Default for NoiseImage
source§impl<'a> IntoIterator for &'a NoiseImage
impl<'a> IntoIterator for &'a NoiseImage
source§impl<'a> IntoIterator for &'a mut NoiseImage
impl<'a> IntoIterator for &'a mut NoiseImage
Auto Trait Implementations§
impl Freeze for NoiseImage
impl RefUnwindSafe for NoiseImage
impl Send for NoiseImage
impl Sync for NoiseImage
impl Unpin for NoiseImage
impl UnwindSafe for NoiseImage
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more