use bevy::prelude::Component;
#[derive(Clone, Copy, Debug, Default, Eq, Ord, PartialEq, PartialOrd)]
pub struct ByteIndex(pub usize);
impl ByteIndex {
pub const fn get(self) -> usize {
self.0
}
}
#[derive(Clone, Copy, Component, Debug, Default, Eq, PartialEq)]
pub struct CursorPosition {
pub byte_index: ByteIndex,
pub desired_column: Option<usize>,
}