[−][src]Struct rmicrobit::graphics::scrolling_text::ScrollingStaticText
A Scrollable
displaying a static ascii byte-string slice.
Methods
impl ScrollingStaticText
[src]
pub fn set_message(&mut self, message: &'static [u8])
[src]
Specifies the ascii byte-string slice to be displayed.
This also resets the animation to the beginning.
Trait Implementations
impl Scrollable for ScrollingStaticText
[src]
type Subimage = BitImage
The type of the underlying 5×5 images.
fn length(&self) -> usize
[src]
fn state(&self) -> &ScrollingState
[src]
fn state_mut(&mut self) -> &mut ScrollingState
[src]
fn subimage(&self, index: usize) -> &BitImage
[src]
fn current_brightness_at(&self, x: usize, y: usize) -> u8
[src]
impl Copy for ScrollingStaticText
[src]
impl Clone for ScrollingStaticText
[src]
fn clone(&self) -> ScrollingStaticText
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for ScrollingStaticText
[src]
fn default() -> ScrollingStaticText
[src]
impl Render for ScrollingStaticText
[src]
fn brightness_at(&self, x: usize, y: usize) -> u8
[src]
Auto Trait Implementations
impl Unpin for ScrollingStaticText
impl Send for ScrollingStaticText
impl Sync for ScrollingStaticText
Blanket Implementations
impl<T> Animate for T where
T: Scrollable,
[src]
T: Scrollable,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self