Struct v_frame::plane::PlaneSlice

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

Fields§

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

Implementations§

A slice starting i pixels above the current one.

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

Checks if add_y and add_x lies in the allocated bounds of the underlying plane.

Checks if -sub_x and -sub_y lies in the allocated bounds of the underlying plane.

This version of the function crops off the padding on the right side of the image

This version of the function includes the padding on the right side of the image

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The returned type after indexing.
Performs the indexing (container[index]) operation. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.