pub struct Offset {
pub x: i16,
pub y: i16,
}Expand description
Relative movement in the terminal coordinate system.
Fields§
§x: i16Horizontal offset (positive = right, negative = left).
y: i16Vertical offset (positive = down, negative = up).
Implementations§
Trait Implementations§
Source§impl AddAssign<Offset> for Position
impl AddAssign<Offset> for Position
Source§fn add_assign(&mut self, offset: Offset)
fn add_assign(&mut self, offset: Offset)
Performs the
+= operation. Read moreimpl Copy for Offset
impl Eq for Offset
impl StructuralPartialEq for Offset
Auto Trait Implementations§
impl Freeze for Offset
impl RefUnwindSafe for Offset
impl Send for Offset
impl Sync for Offset
impl Unpin for Offset
impl UnsafeUnpin for Offset
impl UnwindSafe for Offset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.