pub struct ScrollingStaticText { /* private fields */ }
Expand description
A Scrollable
displaying a static ascii byte-string slice.
Implementations§
Source§impl ScrollingStaticText
impl ScrollingStaticText
Sourcepub fn set_message(&mut self, message: &'static [u8])
pub fn set_message(&mut self, message: &'static [u8])
Specifies the ascii byte-string slice to be displayed.
This also resets the animation to the beginning.
Trait Implementations§
Source§impl Clone for ScrollingStaticText
impl Clone for ScrollingStaticText
Source§fn clone(&self) -> ScrollingStaticText
fn clone(&self) -> ScrollingStaticText
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 Default for ScrollingStaticText
impl Default for ScrollingStaticText
Source§fn default() -> ScrollingStaticText
fn default() -> ScrollingStaticText
Returns the “default value” for a type. Read more
Source§impl Render for ScrollingStaticText
impl Render for ScrollingStaticText
Source§impl Scrollable for ScrollingStaticText
impl Scrollable for ScrollingStaticText
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 Copy for ScrollingStaticText
Auto Trait Implementations§
impl Freeze for ScrollingStaticText
impl RefUnwindSafe for ScrollingStaticText
impl Send for ScrollingStaticText
impl Sync for ScrollingStaticText
impl Unpin for ScrollingStaticText
impl UnwindSafe for ScrollingStaticText
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