Struct embedded_graphics::draw_target::ColorConverted [−][src]
pub struct ColorConverted<'a, T, C> { /* fields omitted */ }
Expand description
Color conversion draw target.
Created by calling color_converted
on any DrawTarget
.
See the color_converted
method documentation for more information.
Trait Implementations
Returns the bounding box.
impl<T, C> DrawTarget for ColorConverted<'_, T, C> where
T: DrawTarget,
C: PixelColor + Into<T::Color>,
[src]
impl<T, C> DrawTarget for ColorConverted<'_, T, C> where
T: DrawTarget,
C: PixelColor + Into<T::Color>,
[src]type Color = C
type Color = C
The pixel color type the targetted display supports.
Draw individual pixels to the display without a defined order. Read more
fn fill_contiguous<I>(
&mut self,
area: &Rectangle,
colors: I
) -> Result<(), Self::Error> where
I: IntoIterator<Item = Self::Color>,
[src]
fn fill_contiguous<I>(
&mut self,
area: &Rectangle,
colors: I
) -> Result<(), Self::Error> where
I: IntoIterator<Item = Self::Color>,
[src]Fill a given area with an iterator providing a contiguous stream of pixel colors. Read more
Fill a given area with a solid color. Read more
Auto Trait Implementations
impl<'a, T, C> RefUnwindSafe for ColorConverted<'a, T, C> where
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, C> Send for ColorConverted<'a, T, C> where
C: Send,
T: Send,
impl<'a, T, C> Sync for ColorConverted<'a, T, C> where
C: Sync,
T: Sync,
impl<'a, T, C> Unpin for ColorConverted<'a, T, C> where
C: Unpin,
impl<'a, T, C> !UnwindSafe for ColorConverted<'a, T, C>
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Creates a translated draw target based on this draw target. Read more
Creates a cropped draw target based on this draw target. Read more
Creates a clipped draw target based on this draw target. Read more
pub fn color_converted<C>(&mut Self) -> ColorConverted<'_, T, C> where
C: PixelColor + Into<<T as DrawTarget>::Color>,
[src]
pub fn color_converted<C>(&mut Self) -> ColorConverted<'_, T, C> where
C: PixelColor + Into<<T as DrawTarget>::Color>,
[src]Creates a color conversion draw target. Read more
Performs the conversion.
Performs the conversion.
Casts the value.
type Output = T
type Output = T
Should always be Self
Casts the value.
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
Casts the value.
pub fn vzip(self) -> V
Casts the value.