Struct prototty::Coord
[−]
[src]
pub struct Coord { pub x: i32, pub y: i32, }
General purpose coordinate for use within prototty crates.
Fields
x: i32
y: i32
Methods
impl Coord
[src]
Trait Implementations
impl Debug for Coord
[src]
impl Clone for Coord
[src]
fn clone(&self) -> Coord
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Coord
[src]
impl Hash for Coord
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for Coord
[src]
fn eq(&self, __arg_0: &Coord) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Coord) -> bool
[src]
This method tests for !=
.
impl Eq for Coord
[src]
impl Default for Coord
[src]
impl<T: Into<[i32; 2]>> From<T> for Coord
[src]
impl<T: Into<Coord>> Add<T> for Coord
[src]
type Output = Coord
The resulting type after applying the +
operator.
fn add(self, rhs: T) -> Self::Output
[src]
Performs the +
operation.
impl Add<Size> for Coord
[src]
type Output = Coord
The resulting type after applying the +
operator.
fn add(self, rhs: Size) -> Self::Output
[src]
Performs the +
operation.
impl<T: Into<Coord>> Sub<T> for Coord
[src]
type Output = Coord
The resulting type after applying the -
operator.
fn sub(self, rhs: T) -> Self::Output
[src]
Performs the -
operation.