Add cursor moving #19

Merged
schmelczer merged 23 commits from asch/cursors into main 2025-04-02 22:06:38 +01:00
Showing only changes of commit 71ccd7b61d - Show all commits

Make Side printable

Andras Schmelczer 2025-03-30 21:27:04 +01:00
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -1,4 +1,16 @@
use std::fmt::Display;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Side { pub enum Side {
Left, Left,
Right, Right,
} }
impl Display for Side {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Side::Left => write!(f, "Left"),
Side::Right => write!(f, "Right"),
}
}
}