pub struct Pixel {
pub color: PixelColor,
/* private fields */
}
Fields§
§color: PixelColor
Trait Implementations§
Source§impl Ord for Pixel
impl Ord for Pixel
Source§impl PartialOrd for Pixel
impl PartialOrd for Pixel
Source§impl PixelInitializer for Pixel
impl PixelInitializer for Pixel
fn new(color: impl Into<PixelColor>, position: impl Into<PixelPosition>) -> Self
Source§impl PixelInterface for &Pixel
impl PixelInterface for &Pixel
type ColorType = PixelColor
Source§fn color(&self) -> &PixelColor
fn color(&self) -> &PixelColor
Get the current
PixelColor
of this Pixel
.Source§fn position(&self) -> &PixelPosition
fn position(&self) -> &PixelPosition
Get the
PixelPosition
of this Pixel
.Source§impl PixelInterface for &mut Pixel
impl PixelInterface for &mut Pixel
type ColorType = PixelColor
Source§fn color(&self) -> &PixelColor
fn color(&self) -> &PixelColor
Get the current
PixelColor
of this Pixel
.Source§fn position(&self) -> &PixelPosition
fn position(&self) -> &PixelPosition
Get the
PixelPosition
of this Pixel
.Source§impl PixelInterface for Pixel
impl PixelInterface for Pixel
type ColorType = PixelColor
Source§fn color(&self) -> &PixelColor
fn color(&self) -> &PixelColor
Get the current
PixelColor
of this Pixel
.Source§fn position(&self) -> &PixelPosition
fn position(&self) -> &PixelPosition
Get the
PixelPosition
of this Pixel
.Source§impl<'p, T> PixelIterExt<&'p Pixel> for T
impl<'p, T> PixelIterExt<&'p Pixel> for T
Source§fn filter_color(
self,
color: impl Into<<Self::Item as PixelInterface>::ColorType>,
) -> impl Iterator<Item = Item>
fn filter_color( self, color: impl Into<<Self::Item as PixelInterface>::ColorType>, ) -> impl Iterator<Item = Item>
Filter pixels using their
PixelColor
.Source§fn filter_position<P>(self, predicate: P) -> impl Iterator<Item = Item>
fn filter_position<P>(self, predicate: P) -> impl Iterator<Item = Item>
Filter pixels based on their
PixelPosition
.Source§impl<'p, T> PixelIterExt<&'p mut Pixel> for T
impl<'p, T> PixelIterExt<&'p mut Pixel> for T
Source§fn filter_color(
self,
color: impl Into<<Self::Item as PixelInterface>::ColorType>,
) -> impl Iterator<Item = Item>
fn filter_color( self, color: impl Into<<Self::Item as PixelInterface>::ColorType>, ) -> impl Iterator<Item = Item>
Filter pixels using their
PixelColor
.Source§fn filter_position<P>(self, predicate: P) -> impl Iterator<Item = Item>
fn filter_position<P>(self, predicate: P) -> impl Iterator<Item = Item>
Filter pixels based on their
PixelPosition
.Source§impl<'p, T> PixelIterExt<Pixel> for T
impl<'p, T> PixelIterExt<Pixel> for T
Source§fn filter_color(
self,
color: impl Into<<Self::Item as PixelInterface>::ColorType>,
) -> impl Iterator<Item = Item>
fn filter_color( self, color: impl Into<<Self::Item as PixelInterface>::ColorType>, ) -> impl Iterator<Item = Item>
Filter pixels using their
PixelColor
.Source§fn filter_position<P>(self, predicate: P) -> impl Iterator<Item = Item>
fn filter_position<P>(self, predicate: P) -> impl Iterator<Item = Item>
Filter pixels based on their
PixelPosition
.Source§impl<'p, T> PixelIterMutExt<'p, &'p mut Pixel> for T
impl<'p, T> PixelIterMutExt<'p, &'p mut Pixel> for T
Source§fn update_colors(
self,
color: impl Into<<Self::Item as PixelInterface>::ColorType>,
)
fn update_colors( self, color: impl Into<<Self::Item as PixelInterface>::ColorType>, )
Updates the
PixelColor
for all of this iterator members.Source§impl PixelMutInterface for &mut Pixel
impl PixelMutInterface for &mut Pixel
Source§impl PixelMutInterface for Pixel
impl PixelMutInterface for Pixel
impl Eq for Pixel
impl StructuralPartialEq for Pixel
Auto Trait Implementations§
impl Freeze for Pixel
impl RefUnwindSafe for Pixel
impl Send for Pixel
impl Sync for Pixel
impl Unpin for Pixel
impl UnwindSafe for Pixel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.