use crate::utils;
use bytes_utils::Str;
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum LMoveDirection {
Left,
Right,
}
impl LMoveDirection {
pub(crate) fn to_str(&self) -> Str {
utils::static_str(match *self {
LMoveDirection::Left => "LEFT",
LMoveDirection::Right => "RIGHT",
})
}
}
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum ListLocation {
Before,
After,
}
impl ListLocation {
pub(crate) fn to_str(&self) -> Str {
utils::static_str(match *self {
ListLocation::Before => "BEFORE",
ListLocation::After => "AFTER",
})
}
}