Struct retro_pixel::ImageSlice[][src]

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

A shared view of some image data.

Methods

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

Makes an 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 ImageSlice<'a, P>
[src]

Formats the value using the given formatter. Read more

impl<'a, P: Clone + 'a> Clone for ImageSlice<'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 ImageSlice<'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 ImageSlice<'a, P>
[src]

impl<'a, P: PartialOrd + 'a> PartialOrd for ImageSlice<'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 ImageSlice<'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 ImageSlice<'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 ImageSlice<'a, P>
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<'a, P: 'a> ReadableImage<P> for ImageSlice<'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> IntoIterator for ImageSlice<'a, P>
[src]

(x, y, pixel_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 ImageSlice<'a, P>

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