pub struct ScrollingBufferedText<const N: usize> { /* private fields */ }
Expand description
A Scrollable
displaying an ascii byte-string of up to N
bytes.
Implementations§
Source§impl<const N: usize> ScrollingBufferedText<N>
impl<const N: usize> ScrollingBufferedText<N>
Sourcepub fn set_message(&mut self, message: &[u8])
pub fn set_message(&mut self, message: &[u8])
Specifies the ascii byte-string to be displayed.
Makes a copy of the byte-string.
This also resets the animation to the beginning.
§Panics
Panics if message
is more than N
bytes long.
Trait Implementations§
Source§impl<const N: usize> Clone for ScrollingBufferedText<N>
impl<const N: usize> Clone for ScrollingBufferedText<N>
Source§fn clone(&self) -> ScrollingBufferedText<N>
fn clone(&self) -> ScrollingBufferedText<N>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<const N: usize> Default for ScrollingBufferedText<N>
impl<const N: usize> Default for ScrollingBufferedText<N>
Source§fn default() -> ScrollingBufferedText<N>
fn default() -> ScrollingBufferedText<N>
Returns the “default value” for a type. Read more
Source§impl<const N: usize> Render for ScrollingBufferedText<N>
impl<const N: usize> Render for ScrollingBufferedText<N>
Source§impl<const N: usize> Scrollable for ScrollingBufferedText<N>
impl<const N: usize> Scrollable for ScrollingBufferedText<N>
Source§fn state(&self) -> &ScrollingState
fn state(&self) -> &ScrollingState
A
ScrollingState
indicating the current point in the animation.Source§fn state_mut(&mut self) -> &mut ScrollingState
fn state_mut(&mut self) -> &mut ScrollingState
A
ScrollingState
indicating the current point in the animation, as
a mutable reference.impl<const N: usize> Copy for ScrollingBufferedText<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for ScrollingBufferedText<N>
impl<const N: usize> RefUnwindSafe for ScrollingBufferedText<N>
impl<const N: usize> Send for ScrollingBufferedText<N>
impl<const N: usize> Sync for ScrollingBufferedText<N>
impl<const N: usize> Unpin for ScrollingBufferedText<N>
impl<const N: usize> UnwindSafe for ScrollingBufferedText<N>
Blanket Implementations§
Source§impl<T> Animate for Twhere
T: Scrollable,
impl<T> Animate for Twhere
T: Scrollable,
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