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 str
text
text_color: ColorType
text color
text_bg_color: ColorType
Text background color
text_blod: bool
Bold text
show_time: bool
Whether to show time
time_text_color: ColorType
Time text color
time_bg_color: ColorType
Time background color
time_text_blod: bool
Time text bold
split: &'a str
Separator
split_color: ColorType
Separator text color
split_bg_color: ColorType
Separator background color
split_text_blod: bool
Separator text bold
endl: bool
endl
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