Struct sdl2_sys::rect::Point [] [src]

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

A structure that defines a two dimensional point.

Fields

x: i32 y: i32

Methods

impl Point
[src]

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

Trait Implementations

impl Copy for Point
[src]

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 PartialEq for Point
[src]

fn eq(&self, __arg_0: &Point) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Point) -> bool

This method tests for !=.