pub enum Event<'a> {
Char {
x: usize,
y: usize,
c: char,
bold: bool,
italic: bool,
underlined: bool,
strikethrough: bool,
color: Color,
},
Input {
data: &'a [u8],
},
Rect {
x: usize,
y: usize,
w: usize,
h: usize,
color: Color,
},
ScreenBuffer {
alternate: bool,
clear: bool,
},
Move {
from_x: usize,
from_y: usize,
to_x: usize,
to_y: usize,
w: usize,
h: usize,
},
Resize {
w: usize,
h: usize,
},
Title {
title: String,
},
}
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.