Struct PlaneMutSlice

pub struct PlaneMutSlice<'a, T: Pixel> { pub plane: &'a mut Plane<T>, pub x: isize, pub y: isize }

Fields

plane: &'a mut Plane<T>
x: isize
y: isize

Implementations

impl<T: Pixel> PlaneMutSlice<'_, T>

fn rows_iter(&self) -> RowsIter<'_, T>
fn rows_iter_mut(&mut self) -> RowsIterMut<'_, T>
fn subslice(&mut self, xo: usize, yo: usize) -> PlaneMutSlice<'_, T>

Trait Implementations

impl<T: Pixel> Index<usize> for PlaneMutSlice<'_, T>

type Output = [T];
fn index(&self, index: usize) -> &Self::Output

impl<T: Pixel> IndexMut<usize> for PlaneMutSlice<'_, T>

fn index_mut(&mut self, index: usize) -> &mut Self::Output

Auto Trait Implementations

impl<'a, T> !UnwindSafe for PlaneMutSlice<'a, T>

impl<'a, T> Freeze for PlaneMutSlice<'a, T> where &'a mut Plane<T>: Freeze,

impl<'a, T> RefUnwindSafe for PlaneMutSlice<'a, T> where &'a mut Plane<T>: RefUnwindSafe,

impl<'a, T> Send for PlaneMutSlice<'a, T> where &'a mut Plane<T>: Send,

impl<'a, T> Sync for PlaneMutSlice<'a, T> where &'a mut Plane<T>: Sync,

impl<'a, T> Unpin for PlaneMutSlice<'a, T> where &'a mut Plane<T>: Unpin,

impl<'a, T> UnsafeUnpin for PlaneMutSlice<'a, T> where &'a mut Plane<T>: UnsafeUnpin,

Blanket Implementations

impl<T> Any for PlaneMutSlice<'a, T> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for PlaneMutSlice<'a, T> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for PlaneMutSlice<'a, T> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for PlaneMutSlice<'a, T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for PlaneMutSlice<'a, T> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for PlaneMutSlice<'a, T> where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for PlaneMutSlice<'a, T> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>