pub struct Output<'a> {Show 13 fields
pub text: &'a str,
pub text_color: ColorType,
pub text_bg_color: ColorType,
pub text_blod: bool,
pub show_time: bool,
pub time_text_color: ColorType,
pub time_bg_color: ColorType,
pub time_text_blod: bool,
pub split: &'a str,
pub split_color: ColorType,
pub split_bg_color: ColorType,
pub split_text_blod: bool,
pub endl: bool,
}Expand description
Output struct
§Code Example
§Using the Struct
§Using the output Function
use ltpp_output::*;
output(Output {
text: "test_output_struct",
text_color: ColorType::Use(Color::Default),
text_bg_color: ColorType::Color256(0x000000),
show_time: true,
time_text_color: ColorType::Rgb(255, 255, 255),
time_bg_color: ColorType::Use(Color::Yellow),
split: " => ",
split_color: ColorType::Use(Color::Cyan),
split_bg_color: ColorType::Use(Color::Yellow),
endl: true,
..Default::default()
});§Using the output Method
use ltpp_output::*;
Output {
text: "test_output_struct_output",
text_color: ColorType::Use(Color::Default),
text_bg_color: ColorType::Use(Color::Blue),
show_time: true,
time_text_color: ColorType::Rgb(255, 255, 255),
time_bg_color: ColorType::Use(Color::Yellow),
split: " => ",
split_color: ColorType::Use(Color::Cyan),
split_bg_color: ColorType::Use(Color::Yellow),
endl: true,
..Default::default()
}
.output();Fields§
§text: &'a strtext
text_color: ColorTypetext color
text_bg_color: ColorTypeText background color
text_blod: boolBold text
show_time: boolWhether to show time
time_text_color: ColorTypeTime text color
time_bg_color: ColorTypeTime background color
time_text_blod: boolTime text bold
split: &'a strSeparator
split_color: ColorTypeSeparator text color
split_bg_color: ColorTypeSeparator background color
split_text_blod: boolSeparator text bold
endl: boolendl
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Output<'a>
impl<'a> RefUnwindSafe for Output<'a>
impl<'a> Send for Output<'a>
impl<'a> Sync for Output<'a>
impl<'a> Unpin for Output<'a>
impl<'a> UnwindSafe for Output<'a>
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