pub struct Output<'a> {
pub text: &'a str,
pub color: ColorType,
pub bg_color: ColorType,
pub blod: bool,
pub endl: bool,
}
Expand description
Represents a colored text output with formatting options.
Fields§
§text: &'a str
The text content to output.
color: ColorType
The text color.
bg_color: ColorType
The background color.
blod: bool
Whether the text should be bold.
endl: bool
Whether to add a newline after the text.
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