Struct tty_interface::position::RelativePosition
source · [−]pub struct RelativePosition { /* private fields */ }Expand description
A content-relative position in the terminal.
An absolute position may be derived with a layout by identifying the line and segment this
position refers to, the part layout whose indices overlap this position’s position, and adding
the difference of those x offsets to the part layout’s absolute position.
Implementations
sourceimpl RelativePosition
impl RelativePosition
Trait Implementations
sourceimpl Clone for RelativePosition
impl Clone for RelativePosition
sourcefn clone(&self) -> RelativePosition
fn clone(&self) -> RelativePosition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RelativePosition
impl Debug for RelativePosition
sourceimpl PartialEq<RelativePosition> for RelativePosition
impl PartialEq<RelativePosition> for RelativePosition
sourcefn eq(&self, other: &RelativePosition) -> bool
fn eq(&self, other: &RelativePosition) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RelativePosition) -> bool
fn ne(&self, other: &RelativePosition) -> bool
This method tests for !=.
impl Copy for RelativePosition
impl Eq for RelativePosition
impl StructuralEq for RelativePosition
impl StructuralPartialEq for RelativePosition
Auto Trait Implementations
impl RefUnwindSafe for RelativePosition
impl Send for RelativePosition
impl Sync for RelativePosition
impl Unpin for RelativePosition
impl UnwindSafe for RelativePosition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more