Enum coded_chars::cursor::Direction
source · pub enum Direction {
Up,
Down,
Forward,
Backward,
NextLine,
PreviousLine,
}Expand description
A struct representing the cursor directions.
To use with the function move_cursor.
Variants§
Up
§CUU - Cursor up
CUU causes the active presentation position to be moved upwards in the presentation component by n line positions if the character path is horizontal, or by n character positions if the character path is vertical.
Down
§CUD - Cursor down
CUD causes the active presentation position to be moved downwards in the presentation component by n line positions if the character path is horizontal, or by n character positions if the character path is vertical.
Forward
§CUF - Cursor forward
CUF causes the active presentation position to be moved rightwards in the presentation component by n character positions if the character path is horizontal, or by n line positions if the character path is vertical.
Backward
§CUB - Cursor backward
CUB causes the active presentation position to be moved leftwards in the presentation component by n character positions if the character path is horizontal, or by n line positions if the character path is vertical.
NextLine
§CNL - Cursor next line
CNL causes the active presentation position to be moved to the first character position of the n-th following line in the presentation component.
PreviousLine
§CPL - Cursor preceding line
CPL causes the active presentation position to be moved to the first character position of the n-th preceding line in the presentation component.
Trait Implementations§
impl Copy for Direction
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)