Struct noise::utils::NoiseImage
source · [−]pub struct NoiseImage { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Default for NoiseImage
impl Default for NoiseImage
sourceimpl Index<(usize, usize)> for NoiseImage
impl Index<(usize, usize)> for NoiseImage
sourceimpl IndexMut<(usize, usize)> for NoiseImage
impl IndexMut<(usize, usize)> for NoiseImage
sourceimpl<'a> IntoIterator for &'a NoiseImage
impl<'a> IntoIterator for &'a NoiseImage
sourceimpl<'a> IntoIterator for &'a mut NoiseImage
impl<'a> IntoIterator for &'a mut NoiseImage
Auto Trait Implementations
impl RefUnwindSafe for NoiseImage
impl Send for NoiseImage
impl Sync for NoiseImage
impl Unpin for NoiseImage
impl UnwindSafe for NoiseImage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more