pub struct TextLoadingBar { /* private fields */ }Implementations§
Source§impl TextLoadingBar
impl TextLoadingBar
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), )
pub fn auto_run_change( option: TextLoadingBarAutoOptions, time_in_seconds: u16, len: u16, start: u16, start_pos: (u16, u16), )
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, )
pub fn auto_run_from(text_loading_bar: TextLoadingBar, time_in_seconds: u16)
pub fn auto_run_from_change( text_loading_bar: TextLoadingBar, option: TextLoadingBarAutoOptions, time_in_seconds: u16, )
pub fn auto_run_from_change_points<T>( loading_bar: TextLoadingBar, change: TextLoadingBarAutoPoint<T>, time_in_seconds: u16, type_change: Types, )
Source§impl TextLoadingBar
impl TextLoadingBar
pub fn new( top_text: String, bottom_text: String, len: u16, color: (Option<Color>, Option<Color>, Option<Color>), t_start_pos: (u16, u16), ) -> TextLoadingBar
pub fn print(&self)
pub fn change_pos(&mut self, t_start_pos: (u16, u16))
pub fn change_pos_print(&mut self, t_start_pos: (u16, u16))
pub fn change_top_text(&mut self, text: String)
pub fn change_bottom_text(&mut self, text: String)
pub fn change_top_text_color(&mut self, color: Option<Color>)
pub fn change_bottom_text_color(&mut self, color: Option<Color>)
pub fn change_bar_color(&mut self, color: Option<Color>)
pub fn change_all_text_colors(&mut self, color: Option<Color>)
pub fn advance(&mut self)
pub fn advance_print(&mut self)
pub fn advance_by(&mut self, index: u16)
pub fn advance_by_print(&mut self, index: u16)
pub fn advance_by_percent(&mut self, percent: f32)
pub fn advance_by_percent_print(&mut self, percent: f32)
pub fn change(&mut self, map: HashMap<&str, TextLoadingBarOptions>, print: bool)
Trait Implementations§
Source§impl Debug for TextLoadingBar
impl Debug for TextLoadingBar
Auto Trait Implementations§
impl Freeze for TextLoadingBar
impl RefUnwindSafe for TextLoadingBar
impl Send for TextLoadingBar
impl Sync for TextLoadingBar
impl Unpin for TextLoadingBar
impl UnwindSafe for TextLoadingBar
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