TextLoadingBar

Struct TextLoadingBar 

Source
pub struct TextLoadingBar { /* private fields */ }

Implementations§

Source§

impl TextLoadingBar

Source

pub fn auto_run( top_text: String, bottom_text: String, time_in_seconds: u16, len: u16, start: u16, color: (Option<Color>, Option<Color>, Option<Color>), t_start_pos: (u16, u16), )

Source

pub fn auto_run_change( option: TextLoadingBarAutoOptions, time_in_seconds: u16, len: u16, start: u16, start_pos: (u16, u16), )

Source

pub fn auto_run_change_points<T>( time_in_seconds: u16, len: u16, start: u16, start_pos: (u16, u16), change: TextLoadingBarAutoPoint<T>, type_change: Types, )
where T: Copy + Debug, u16: From<T>, f32: From<T>,

Source

pub fn auto_run_from(text_loading_bar: TextLoadingBar, time_in_seconds: u16)

Source

pub fn auto_run_from_change( text_loading_bar: TextLoadingBar, option: TextLoadingBarAutoOptions, time_in_seconds: u16, )

Source

pub fn auto_run_from_change_points<T>( loading_bar: TextLoadingBar, change: TextLoadingBarAutoPoint<T>, time_in_seconds: u16, type_change: Types, )
where T: Copy + Debug, u16: From<T>, f32: From<T>,

Source§

impl TextLoadingBar

Source

pub fn new( top_text: String, bottom_text: String, len: u16, color: (Option<Color>, Option<Color>, Option<Color>), t_start_pos: (u16, u16), ) -> TextLoadingBar

Source

pub fn print(&self)

Source

pub fn change_pos(&mut self, t_start_pos: (u16, u16))

Source

pub fn change_pos_print(&mut self, t_start_pos: (u16, u16))

Source

pub fn change_top_text(&mut self, text: String)

Source

pub fn change_bottom_text(&mut self, text: String)

Source

pub fn change_top_text_color(&mut self, color: Option<Color>)

Source

pub fn change_bottom_text_color(&mut self, color: Option<Color>)

Source

pub fn change_bar_color(&mut self, color: Option<Color>)

Source

pub fn change_all_text_colors(&mut self, color: Option<Color>)

Source

pub fn advance(&mut self)

Source

pub fn advance_print(&mut self)

Source

pub fn advance_by(&mut self, index: u16)

Source

pub fn advance_by_print(&mut self, index: u16)

Source

pub fn advance_by_percent(&mut self, percent: f32)

Source

pub fn advance_by_percent_print(&mut self, percent: f32)

Source

pub fn change(&mut self, map: HashMap<&str, TextLoadingBarOptions>, print: bool)

Trait Implementations§

Source§

impl Debug for TextLoadingBar

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for TextLoadingBar

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.