Struct v_frame::plane::PlaneSlice[][src]

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

Fields

plane: &'a Plane<T>x: isizey: isize

Implementations

impl<'a, T: Pixel> PlaneSlice<'a, T>[src]

pub fn as_ptr(&self) -> *const T[src]

pub fn rows_iter(&self) -> RowsIter<'_, T>

Notable traits for RowsIter<'a, T>

impl<'a, T: Pixel> Iterator for RowsIter<'a, T> type Item = &'a [T];
[src]

pub fn clamp(&self) -> PlaneSlice<'a, T>[src]

pub fn subslice(&self, xo: usize, yo: usize) -> PlaneSlice<'a, T>[src]

pub fn reslice(&self, xo: isize, yo: isize) -> PlaneSlice<'a, T>[src]

pub fn go_up(&self, i: usize) -> PlaneSlice<'a, T>[src]

A slice starting i pixels above the current one.

pub fn go_left(&self, i: usize) -> PlaneSlice<'a, T>[src]

A slice starting i pixels to the left of the current one.

pub fn p(&self, add_x: usize, add_y: usize) -> T[src]

pub fn row(&self, y: usize) -> &[T]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Trait Implementations

impl<'a, T: Clone + Pixel> Clone for PlaneSlice<'a, T>[src]

impl<'a, T: Copy + Pixel> Copy for PlaneSlice<'a, T>[src]

impl<'a, T: Debug + Pixel> Debug for PlaneSlice<'a, T>[src]

impl<'a, T: Pixel> Index<usize> for PlaneSlice<'a, T>[src]

type Output = [T]

The returned type after indexing.

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for PlaneSlice<'a, T> where
    T: RefUnwindSafe

impl<'a, T> Send for PlaneSlice<'a, T>

impl<'a, T> Sync for PlaneSlice<'a, T>

impl<'a, T> Unpin for PlaneSlice<'a, T>

impl<'a, T> UnwindSafe for PlaneSlice<'a, T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.