[][src]Struct rmicrobit::graphics::scrolling::ScrollingState

pub struct ScrollingState { /* fields omitted */ }

Data needed to record the state of a scrolling animation.

Implementations of Scrollable should contain one of these and make it available via state() and state_mut().

Methods

impl ScrollingState[src]

pub fn reset(&mut self)[src]

Reset the state to the beginning.

pub fn tick(&mut self)[src]

Advance the state by one tick.

Trait Implementations

impl Debug for ScrollingState[src]

impl Copy for ScrollingState[src]

impl Clone for ScrollingState[src]

impl Default for ScrollingState[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Error = !

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