Struct text_terminal::ScreenPoint
source · pub struct ScreenPoint { /* private fields */ }
Expand description
A 2D position value that represents a point on the screen,
in which (0, 0)
represents the top-left corner.
Thus, a valid ScreenPoint
must fit be the bounds of
the current ScreenSize
.
Trait Implementations§
source§impl Add<ScreenPoint> for ScreenPoint
impl Add<ScreenPoint> for ScreenPoint
§type Output = ScreenPoint
type Output = ScreenPoint
The resulting type after applying the
+
operator.source§fn add(self, rhs: ScreenPoint) -> ScreenPoint
fn add(self, rhs: ScreenPoint) -> ScreenPoint
Performs the
+
operation. Read moresource§impl AddAssign<ScreenPoint> for ScreenPoint
impl AddAssign<ScreenPoint> for ScreenPoint
source§fn add_assign(&mut self, rhs: ScreenPoint)
fn add_assign(&mut self, rhs: ScreenPoint)
Performs the
+=
operation. Read moresource§impl Clone for ScreenPoint
impl Clone for ScreenPoint
source§fn clone(&self) -> ScreenPoint
fn clone(&self) -> ScreenPoint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ScreenPoint
impl Debug for ScreenPoint
source§impl Default for ScreenPoint
impl Default for ScreenPoint
source§fn default() -> ScreenPoint
fn default() -> ScreenPoint
Returns the “default value” for a type. Read more
source§impl Ord for ScreenPoint
impl Ord for ScreenPoint
source§impl PartialEq<ScreenPoint> for ScreenPoint
impl PartialEq<ScreenPoint> for ScreenPoint
source§fn eq(&self, other: &ScreenPoint) -> bool
fn eq(&self, other: &ScreenPoint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ScreenPoint> for ScreenPoint
impl PartialOrd<ScreenPoint> for ScreenPoint
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Sub<ScreenPoint> for ScreenPoint
impl Sub<ScreenPoint> for ScreenPoint
§type Output = ScreenPoint
type Output = ScreenPoint
The resulting type after applying the
-
operator.source§fn sub(self, rhs: ScreenPoint) -> ScreenPoint
fn sub(self, rhs: ScreenPoint) -> ScreenPoint
Performs the
-
operation. Read moresource§impl SubAssign<ScreenPoint> for ScreenPoint
impl SubAssign<ScreenPoint> for ScreenPoint
source§fn sub_assign(&mut self, rhs: ScreenPoint)
fn sub_assign(&mut self, rhs: ScreenPoint)
Performs the
-=
operation. Read moreimpl Copy for ScreenPoint
impl Eq for ScreenPoint
impl StructuralEq for ScreenPoint
impl StructuralPartialEq for ScreenPoint
Auto Trait Implementations§
impl RefUnwindSafe for ScreenPoint
impl Send for ScreenPoint
impl Sync for ScreenPoint
impl Unpin for ScreenPoint
impl UnwindSafe for ScreenPoint
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