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,
},
}
Variants
Char
Input
Fields
data: &'a [u8]
Rect
ScreenBuffer
Move
Resize
Title
Fields
title: String
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnwindSafe for Event<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more