Struct retro_pixel::ImageMutSlice[][src]

pub struct ImageMutSlice<'a, P: 'a> { /* fields omitted */ }

A mutable sub-view of some image data.

Methods

impl<'a, P: 'a> ImageMutSlice<'a, P>
[src]

Makes a mutable image slice from the base parts.

Absolutely no checks are performed, you must not lie to this method.

Trait Implementations

impl<'a, P: Debug + 'a> Debug for ImageMutSlice<'a, P>
[src]

Formats the value using the given formatter. Read more

impl<'a, P: Clone + 'a> Clone for ImageMutSlice<'a, P>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, P: PartialEq + 'a> PartialEq for ImageMutSlice<'a, P>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, P: Eq + 'a> Eq for ImageMutSlice<'a, P>
[src]

impl<'a, P: PartialOrd + 'a> PartialOrd for ImageMutSlice<'a, P>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<'a, P: Ord + 'a> Ord for ImageMutSlice<'a, P>
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<'a, P: Hash + 'a> Hash for ImageMutSlice<'a, P>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a, P: 'a> Index<(usize, usize)> for ImageMutSlice<'a, P>
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<'a, P: 'a> ReadableImage<P> for ImageMutSlice<'a, P>
[src]

Can't exceed isize::MAX

Can't exceed isize::MAX

Offset from the start of one row to the start of the next row.

Raw const pointer to the data.

Performs an optional indexing by reference, gives None for out of bounds.

Grabs out a sub-slice of the data. Read more

Important traits for ImageRefIter<'a, P>

Lets you iterate any image by reference.

This is like to_owned, you get your own version of the data. Read more

Scales up into a new VecImage by the given amount. Read more

impl<'a, P: 'a> IndexMut<(usize, usize)> for ImageMutSlice<'a, P>
[src]

Performs the mutable indexing (container[index]) operation.

impl<'a, P: 'a> WritableImage<P> for ImageMutSlice<'a, P>
[src]

Raw mut pointer to the data.

Performs an optional indexing by mut reference, gives None for out of bounds.

Grabs out a mutable sub-slice of the data. Read more

Important traits for ImageMutRefIter<'a, P>

Lets you mutably iterate over any writable form of image.

Assigns all locations to be the given pixel value.

Directly copies the data from the source image into this image. Read more

Flips the image vertically. Read more

Flips the image horizontally. Read more

Performs a 90 degrees counter-clockwise rotation, in place. Read more

Modifies this image by overlaying the source image at the offset given. Read more

impl<'a> WritableImageU16Ext for ImageMutSlice<'a, u16>
[src]

This copies the data from the source into the destination any time the source's alpha bit is set. Read more

impl<'a> WritableImageU32Ext for ImageMutSlice<'a, u32>
[src]

Performs a rectilinear blending blit at an integral pixel offset. Read more

impl<'a, P: 'a> IntoIterator for ImageMutSlice<'a, P>
[src]

(x, y, pixel_mut_ref)

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

impl<'a, P> !Send for ImageMutSlice<'a, P>

impl<'a, P> !Sync for ImageMutSlice<'a, P>