Struct loading_bar::text_loading_bar::TextLoadingBar
source · [−]pub struct TextLoadingBar { /* private fields */ }
Implementations
sourceimpl 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
) where
T: Copy + Debug,
u16: From<T>,
f32: From<T>,
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
) where
T: Copy + Debug,
u16: From<T>,
f32: From<T>,
sourceimpl 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_bracket_color(&mut self, color: Option<Color>)
pub fn change_bracket_color_print(&mut self, color: Option<Color>)
pub fn change_character_type(&mut self, character: char)
pub fn change_character_type_print(&mut self, character: char)
pub fn change_last_character(&mut self, character: char)
pub fn change_last_character_print(&mut self, character: char)
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_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
sourceimpl Debug for TextLoadingBar
impl Debug for TextLoadingBar
Auto Trait Implementations
impl RefUnwindSafe for TextLoadingBar
impl Send for TextLoadingBar
impl Sync for TextLoadingBar
impl Unpin for TextLoadingBar
impl UnwindSafe for TextLoadingBar
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more