[][src]Struct liriodendron::log::tools::setter::Cursor

pub struct Cursor {
    pub pos: usize,
    pub value: Vec<char>,
    pub min_value: u16,
    pub max_value: u16,
    pub instant: Instant,
}

A numeric cursor which encapsulates shared functions between Setter sub-structs

Fields

pos: usizevalue: Vec<char>min_value: u16max_value: u16instant: Instant

Methods

impl Cursor[src]

pub fn new(default_value: Vec<char>, min: u16, max: u16) -> Cursor[src]

pub fn get_pos(&self) -> usize[src]

pub fn cursor_is_blinking(&self) -> bool[src]

pub fn reset_cursor(&mut self)[src]

pub fn cursor_left(&mut self)[src]

pub fn cursor_right(&mut self)[src]

Auto Trait Implementations

impl RefUnwindSafe for Cursor

impl Send for Cursor

impl Sync for Cursor

impl Unpin for Cursor

impl UnwindSafe for Cursor

Blanket Implementations

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

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

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

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

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

impl<T> SetParameter for T

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> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,