pub struct SmartLedsOutput<'a, T, Pixbuf> { /* private fields */ }Implementations§
Source§impl<'a, T, Pixel, const PIXEL_COUNT: usize> SmartLedsOutput<'a, T, [Pixel; PIXEL_COUNT]>
impl<'a, T, Pixel, const PIXEL_COUNT: usize> SmartLedsOutput<'a, T, [Pixel; PIXEL_COUNT]>
pub fn new( target: T, pixbuf: &'a mut [Pixel; PIXEL_COUNT], max_mw: Milliwatts, ) -> Self
pub const fn pixbuf(&mut self) -> &mut [Pixel; PIXEL_COUNT]
pub fn set_clip(&mut self, clip: Rectangle<LinearSpace>)
pub fn swap_buffer( &mut self, pixbuf: &'a mut [Pixel; PIXEL_COUNT], ) -> &'a mut [Pixel; PIXEL_COUNT]
Trait Implementations§
Source§impl<'a, T: SmartLedsWrite + 'a, Pixbuf: AsRef<[T::Color]>> Output<'a, LinearSpace> for SmartLedsOutput<'a, T, Pixbuf>where
Self: Sample<'a, LinearSpace>,
T::Color: Debug + AsMilliwatts + Mul<Fract8, Output = T::Color> + Copy + WithGamma,
impl<'a, T: SmartLedsWrite + 'a, Pixbuf: AsRef<[T::Color]>> Output<'a, LinearSpace> for SmartLedsOutput<'a, T, Pixbuf>where
Self: Sample<'a, LinearSpace>,
T::Color: Debug + AsMilliwatts + Mul<Fract8, Output = T::Color> + Copy + WithGamma,
Source§impl<'a, T: SmartLedsWriteAsync + 'a, Pixbuf: AsRef<[T::Color]>> OutputAsync<'a, LinearSpace> for SmartLedsOutput<'a, T, Pixbuf>where
Self: Sample<'a, LinearSpace>,
T::Color: Debug + AsMilliwatts + Mul<Fract8, Output = T::Color> + Copy + WithGamma,
impl<'a, T: SmartLedsWriteAsync + 'a, Pixbuf: AsRef<[T::Color]>> OutputAsync<'a, LinearSpace> for SmartLedsOutput<'a, T, Pixbuf>where
Self: Sample<'a, LinearSpace>,
T::Color: Debug + AsMilliwatts + Mul<Fract8, Output = T::Color> + Copy + WithGamma,
Source§impl<'a, T, Color, const PIXEL_COUNT: usize> Sample<'a, LinearSpace> for SmartLedsOutput<'a, T, [Color; PIXEL_COUNT]>where
Color: 'a,
impl<'a, T, Color, const PIXEL_COUNT: usize> Sample<'a, LinearSpace> for SmartLedsOutput<'a, T, [Color; PIXEL_COUNT]>where
Color: 'a,
Source§fn sample(
&mut self,
rect: &Rectangle<LinearSpace>,
) -> impl Iterator<Item = (Coordinates<LinearSpace>, &'a mut Self::Output)>
fn sample( &mut self, rect: &Rectangle<LinearSpace>, ) -> impl Iterator<Item = (Coordinates<LinearSpace>, &'a mut Self::Output)>
Provides a [PixelView] over the given Rectangle selection
Auto Trait Implementations§
impl<'a, T, Pixbuf> Freeze for SmartLedsOutput<'a, T, Pixbuf>where
T: Freeze,
impl<'a, T, Pixbuf> RefUnwindSafe for SmartLedsOutput<'a, T, Pixbuf>where
T: RefUnwindSafe,
Pixbuf: RefUnwindSafe,
impl<'a, T, Pixbuf> Send for SmartLedsOutput<'a, T, Pixbuf>
impl<'a, T, Pixbuf> Sync for SmartLedsOutput<'a, T, Pixbuf>
impl<'a, T, Pixbuf> Unpin for SmartLedsOutput<'a, T, Pixbuf>where
T: Unpin,
impl<'a, T, Pixbuf> UnsafeUnpin for SmartLedsOutput<'a, T, Pixbuf>where
T: UnsafeUnpin,
impl<'a, T, Pixbuf> !UnwindSafe for SmartLedsOutput<'a, T, Pixbuf>
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