pub struct DesktopDriver<Dim, Layout> { /* private fields */ }Expand description
Desktop driver for simulating LED layouts in a desktop window.
This struct implements the Driver trait.
§Type Parameters
Dim- The dimension marker (Dim1d or Dim2d or Dim3d)Layout- The specific layout type
Trait Implementations§
Source§impl<Dim, Layout> Driver for DesktopDriver<Dim, Layout>where
Layout: LayoutForDim<Dim>,
impl<Dim, Layout> Driver for DesktopDriver<Dim, Layout>where
Layout: LayoutForDim<Dim>,
Source§type Error = DesktopError
type Error = DesktopError
The error type that may be returned by the driver.
Source§type Color = LinearSrgb
type Color = LinearSrgb
The color type accepted by the driver.
Source§type Word = LinearSrgb
type Word = LinearSrgb
The word of the frame buffer.
Source§fn encode<const PIXEL_COUNT: usize, const FRAME_BUFFER_SIZE: usize, Pixels, Color>(
&mut self,
pixels: Pixels,
_brightness: f32,
_correction: ColorCorrection,
) -> Vec<Self::Word, FRAME_BUFFER_SIZE>
fn encode<const PIXEL_COUNT: usize, const FRAME_BUFFER_SIZE: usize, Pixels, Color>( &mut self, pixels: Pixels, _brightness: f32, _correction: ColorCorrection, ) -> Vec<Self::Word, FRAME_BUFFER_SIZE>
Encodes an update frame buffer for the LED hardware. Read more
Auto Trait Implementations§
impl<Dim, Layout> Freeze for DesktopDriver<Dim, Layout>
impl<Dim, Layout> RefUnwindSafe for DesktopDriver<Dim, Layout>where
Dim: RefUnwindSafe,
Layout: RefUnwindSafe,
impl<Dim, Layout> Send for DesktopDriver<Dim, Layout>
impl<Dim, Layout> Sync for DesktopDriver<Dim, Layout>
impl<Dim, Layout> Unpin for DesktopDriver<Dim, Layout>
impl<Dim, Layout> UnwindSafe for DesktopDriver<Dim, Layout>where
Dim: UnwindSafe,
Layout: UnwindSafe,
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> FromColor<T> for T
impl<T> FromColor<T> for T
Source§fn from_color(color: T) -> T
fn from_color(color: T) -> T
Converts from the source color type
Source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Converts into the target color type