[−][src]Struct rmicrobit::graphics::scrolling_text::ScrollingBufferedText
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.
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 ScrollingBufferedText[src]
impl Clone for ScrollingBufferedText[src]
fn clone(&self) -> ScrollingBufferedText[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for ScrollingBufferedText[src]
fn default() -> ScrollingBufferedText[src]
impl Render for ScrollingBufferedText[src]
fn brightness_at(&self, x: usize, y: usize) -> u8[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]
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