Struct kernel::graphics::point::Point [] [src]

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

A point

Fields

x
y

Methods

impl Point

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

Create a new point

Trait Implementations

impl Add for Point

type Output = Point

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

impl Sub for Point

type Output = Point

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

Derived Implementations

impl Clone for Point

fn clone(&self) -> Point

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

impl Copy for Point