pub struct ScreenOnLedComponent<S: Screen<'static> + 'static, const NUM_LEDS: usize, const SCREEN_WIDTH: usize, const SCREEN_HEIGHT: usize, const BUFFER_LENGTH: usize> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<S: Screen<'static> + 'static, const NUM_LEDS: usize, const SCREEN_WIDTH: usize, const SCREEN_HEIGHT: usize, const BUFFER_LENGTH: usize> Component for ScreenOnLedComponent<S, NUM_LEDS, SCREEN_WIDTH, SCREEN_HEIGHT, BUFFER_LENGTH>
impl<S: Screen<'static> + 'static, const NUM_LEDS: usize, const SCREEN_WIDTH: usize, const SCREEN_HEIGHT: usize, const BUFFER_LENGTH: usize> Component for ScreenOnLedComponent<S, NUM_LEDS, SCREEN_WIDTH, SCREEN_HEIGHT, BUFFER_LENGTH>
Source§type StaticInput = (&'static mut MaybeUninit<[u8; BUFFER_LENGTH]>, &'static mut MaybeUninit<ScreenOnLed<'static, S, NUM_LEDS, SCREEN_WIDTH, SCREEN_HEIGHT>>)
type StaticInput = (&'static mut MaybeUninit<[u8; BUFFER_LENGTH]>, &'static mut MaybeUninit<ScreenOnLed<'static, S, NUM_LEDS, SCREEN_WIDTH, SCREEN_HEIGHT>>)
An optional type to specify the chip or board specific static memory
that a component needs to setup the output object(s). This is the memory
that
crate::static_buf!()
would normally setup, but generic
components cannot setup static buffers for types which are
chip-dependent, so those buffers have to be passed in manually, and the
Component::StaticInput
type makes this possible.Source§type Output = &'static ScreenOnLed<'static, S, NUM_LEDS, SCREEN_WIDTH, SCREEN_HEIGHT>
type Output = &'static ScreenOnLed<'static, S, NUM_LEDS, SCREEN_WIDTH, SCREEN_HEIGHT>
The type (e.g., capsule, peripheral) that this implementation of
Component
produces via Component::finalize()
. This is typically
a static reference (&'static
).Source§fn finalize(self, static_input: Self::StaticInput) -> Self::Output
fn finalize(self, static_input: Self::StaticInput) -> Self::Output
Auto Trait Implementations§
impl<S, const NUM_LEDS: usize, const SCREEN_WIDTH: usize, const SCREEN_HEIGHT: usize, const BUFFER_LENGTH: usize> Freeze for ScreenOnLedComponent<S, NUM_LEDS, SCREEN_WIDTH, SCREEN_HEIGHT, BUFFER_LENGTH>
impl<S, const NUM_LEDS: usize, const SCREEN_WIDTH: usize, const SCREEN_HEIGHT: usize, const BUFFER_LENGTH: usize> RefUnwindSafe for ScreenOnLedComponent<S, NUM_LEDS, SCREEN_WIDTH, SCREEN_HEIGHT, BUFFER_LENGTH>where
S: RefUnwindSafe,
impl<S, const NUM_LEDS: usize, const SCREEN_WIDTH: usize, const SCREEN_HEIGHT: usize, const BUFFER_LENGTH: usize> Send for ScreenOnLedComponent<S, NUM_LEDS, SCREEN_WIDTH, SCREEN_HEIGHT, BUFFER_LENGTH>where
S: Sync,
impl<S, const NUM_LEDS: usize, const SCREEN_WIDTH: usize, const SCREEN_HEIGHT: usize, const BUFFER_LENGTH: usize> Sync for ScreenOnLedComponent<S, NUM_LEDS, SCREEN_WIDTH, SCREEN_HEIGHT, BUFFER_LENGTH>where
S: Sync,
impl<S, const NUM_LEDS: usize, const SCREEN_WIDTH: usize, const SCREEN_HEIGHT: usize, const BUFFER_LENGTH: usize> Unpin for ScreenOnLedComponent<S, NUM_LEDS, SCREEN_WIDTH, SCREEN_HEIGHT, BUFFER_LENGTH>
impl<S, const NUM_LEDS: usize, const SCREEN_WIDTH: usize, const SCREEN_HEIGHT: usize, const BUFFER_LENGTH: usize> UnwindSafe for ScreenOnLedComponent<S, NUM_LEDS, SCREEN_WIDTH, SCREEN_HEIGHT, BUFFER_LENGTH>where
S: RefUnwindSafe,
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