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
impl<'a, T: Debug, C: Debug> Debug for ColorConverted<'a, T, C>[src]
impl<'a, T: Debug, C: Debug> Debug for ColorConverted<'a, T, C>[src]impl<T, C> Dimensions for ColorConverted<'_, T, C> where
T: DrawTarget, [src]
impl<T, C> Dimensions for ColorConverted<'_, T, C> where
T: DrawTarget, [src]fn bounding_box(&self) -> Rectangle[src]
fn bounding_box(&self) -> Rectangle[src]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 = CThe pixel color type the targetted display supports.
fn draw_iter<I>(&mut self, pixels: I) -> Result<(), Self::Error> where
I: IntoIterator<Item = Pixel<Self::Color>>, [src]
fn draw_iter<I>(&mut self, pixels: I) -> Result<(), Self::Error> where
I: IntoIterator<Item = Pixel<Self::Color>>, [src]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
Auto Trait Implementations
impl<'a, T, C> RefUnwindSafe for ColorConverted<'a, T, C> where
C: RefUnwindSafe,
T: RefUnwindSafe,
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, C> Send for ColorConverted<'a, T, C> where
C: Send,
T: Send,
C: Send,
T: Send,
impl<'a, T, C> Sync for ColorConverted<'a, T, C> where
C: Sync,
T: Sync,
C: Sync,
T: Sync,
impl<'a, T, C> Unpin for ColorConverted<'a, T, C> where
C: Unpin,
C: Unpin,
impl<'a, T, C> !UnwindSafe for ColorConverted<'a, T, C>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> DrawTargetExt for T where
T: DrawTarget, [src]
impl<T> DrawTargetExt for T where
T: DrawTarget, [src]pub fn translated(&mut Self, Point) -> Translated<'_, T>[src]
pub fn translated(&mut Self, Point) -> Translated<'_, T>[src]Creates a translated draw target based on this draw target. Read more
pub fn cropped(&mut Self, &Rectangle) -> Cropped<'_, T>[src]
pub fn cropped(&mut Self, &Rectangle) -> Cropped<'_, T>[src]Creates a cropped draw target based on this draw target. Read more
pub fn clipped(&mut Self, &Rectangle) -> Clipped<'_, T>[src]
pub fn clipped(&mut Self, &Rectangle) -> Clipped<'_, T>[src]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
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>, [src]
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>, [src]pub fn lossless_try_into(self) -> Option<Dst>[src]
pub fn lossless_try_into(self) -> Option<Dst>[src]Performs the conversion.
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>, [src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>, [src]pub fn lossy_into(self) -> Dst[src]
pub fn lossy_into(self) -> Dst[src]Performs the conversion.
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, pub fn to_subset(&self) -> Option<SS>
pub fn to_subset(&self) -> Option<SS>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) -> boolChecks 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) -> SSUse 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) -> SPThe inclusion map: converts self to the equivalent element of its superset.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,