scarb_ui/components/new_line.rs
1use crate::Message;
2
3/// A message that prints a new line.
4pub struct NewLine {}
5
6impl Default for NewLine {
7 fn default() -> Self {
8 Self::new()
9 }
10}
11
12impl NewLine {
13 /// Create a new instance of `NewLine`.
14 pub fn new() -> Self {
15 Self {}
16 }
17}
18
19impl Message for NewLine {
20 fn print_text(self)
21 where
22 Self: Sized,
23 {
24 println!();
25 }
26
27 fn print_json(self)
28 where
29 Self: Sized,
30 {
31 }
32}