pub enum Position {
Relative(isize),
Absolute(usize),
EndRelative(usize),
}
Expand description
Position holds 0-based positioning information, where Absolute(0) is the start of the line or column, Relative(0) is the current position in the line or column and EndRelative(0) is the end position in the line or column.
Variants§
Relative(isize)
Negative values move up, positive values down, 0 means no change
Absolute(usize)
Relative to the start of the line or top of the screen
EndRelative(usize)
Relative to the end of line or bottom of screen
Trait Implementations§
source§impl<'de> Deserialize<'de> for Position
impl<'de> Deserialize<'de> for Position
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Position
impl PartialEq for Position
impl Copy for Position
impl Eq for Position
impl StructuralEq for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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
Mutably borrows from an owned value. Read more