pub struct BarChartStates {
pub cursor: usize,
}
Expand description
§BarChartStates
Bar chart states
Fields§
§cursor: usize
Implementations§
Source§impl BarChartStates
impl BarChartStates
Sourcepub fn move_cursor_left(&mut self)
pub fn move_cursor_left(&mut self)
§move_cursor_left
Move cursor to the left
Sourcepub fn move_cursor_right(&mut self, data_len: usize)
pub fn move_cursor_right(&mut self, data_len: usize)
§move_cursor_right
Move cursor to the right
Sourcepub fn reset_cursor(&mut self)
pub fn reset_cursor(&mut self)
§reset_cursor
Reset cursor to 0
Sourcepub fn cursor_at_end(&mut self, data_len: usize)
pub fn cursor_at_end(&mut self, data_len: usize)
§cursor_at_end
Move cursor to the end of the chart
Trait Implementations§
Source§impl Default for BarChartStates
impl Default for BarChartStates
Source§fn default() -> BarChartStates
fn default() -> BarChartStates
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BarChartStates
impl RefUnwindSafe for BarChartStates
impl Send for BarChartStates
impl Sync for BarChartStates
impl Unpin for BarChartStates
impl UnwindSafe for BarChartStates
Blanket Implementations§
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more