[][src]Struct rmicrobit::graphics::scrolling_text::ScrollingBufferedText

pub struct ScrollingBufferedText { /* fields omitted */ }

A Scrollable displaying an ascii byte-string of up to 128 bytes.

Methods

impl ScrollingBufferedText[src]

pub fn set_message(&mut self, message: &[u8])[src]

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 128 bytes long.

Trait Implementations

impl Scrollable for ScrollingBufferedText[src]

type Subimage = BitImage

The type of the underlying 5×5 images.

impl Copy for ScrollingBufferedText[src]

impl Clone for ScrollingBufferedText[src]

impl Default for ScrollingBufferedText[src]

impl Render for ScrollingBufferedText[src]

Auto Trait Implementations

impl Unpin for ScrollingBufferedText

impl Send for ScrollingBufferedText

impl Sync for ScrollingBufferedText

Blanket Implementations

impl<T> Animate for T where
    T: Scrollable
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self