pub struct PrintMsg(pub String);Expand description
A message to print a line to the terminal.
This message causes the program to print text to the terminal output. The text will be printed as-is with a newline appended.
§Examples
use bubbletea_rs::event::PrintMsg;
// Print a simple message
let msg = PrintMsg("Hello, Terminal!".to_string());§Note
This bypasses the normal view rendering and directly outputs to the terminal. Use sparingly as it can interfere with the TUI display.
Tuple Fields§
§0: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for PrintMsg
impl RefUnwindSafe for PrintMsg
impl Send for PrintMsg
impl Sync for PrintMsg
impl Unpin for PrintMsg
impl UnwindSafe for PrintMsg
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