Struct orbclient::point::Point [] [src]

pub struct Point {
    pub x: i32,
    pub y: i32,
}

A point

Fields

x: i32 y: i32

Methods

impl Point
[src]

fn new(x: i32, y: i32) -> Self

Create a new point

Trait Implementations

impl Default for Point
[src]

fn default() -> Point

Returns the "default value" for a type. Read more

impl Debug for Point
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Point
[src]

fn clone(&self) -> Point

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Point
[src]

impl Add for Point
[src]

type Output = Point

The resulting type after applying the + operator

fn add(self, other: Point) -> Self::Output

The method for the + operator

impl Sub for Point
[src]

type Output = Point

The resulting type after applying the - operator

fn sub(self, other: Point) -> Self::Output

The method for the - operator