pub struct Output<'a> {
pub text: &'a str,
pub color: ColorType,
pub bg_color: ColorType,
pub blod: bool,
pub endl: bool,
}
Expand description
Output struct
§Code Example
§Using the Struct
§Using the output Function
use color_output::*;
output(Output {
text: "test_output_struct",
color: ColorType::Use(Color::Default),
bg_color: ColorType::Color256(0x000000),
endl: true,
..Default::default()
});
§Using the output Method
use color_output::*;
Output {
text: "test_output_struct_output",
color: ColorType::Use(Color::Default),
bg_color: ColorType::Use(Color::Blue),
endl: true,
..Default::default()
}
.output();
Fields§
§text: &'a str
text
color: ColorType
text color
bg_color: ColorType
Text background color
blod: bool
Bold text
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