Struct simple_game_engine::prelude::Point [−][src]
pub struct Point { /* fields omitted */ }
Immutable point type, consisting of x and y.
Implementations
impl Point
[src]
impl Point
[src]pub fn from_ll(raw: SDL_Point) -> Point
[src]
pub fn raw_slice(slice: &[Point]) -> *const SDL_Point
[src]
pub fn raw(&self) -> *const SDL_Point
[src]
pub fn offset(self, x: i32, y: i32) -> Point
[src]
pub fn offset(self, x: i32, y: i32) -> Point
[src]Returns a new point by shifting this point’s coordinates by the given x and y values.
Trait Implementations
impl AddAssign<Point> for Point
[src]
impl AddAssign<Point> for Point
[src]pub fn add_assign(&mut self, rhs: Point)
[src]
pub fn add_assign(&mut self, rhs: Point)
[src]Performs the +=
operation. Read more
impl DivAssign<i32> for Point
[src]
impl DivAssign<i32> for Point
[src]pub fn div_assign(&mut self, rhs: i32)
[src]
pub fn div_assign(&mut self, rhs: i32)
[src]Performs the /=
operation. Read more
impl MulAssign<i32> for Point
[src]
impl MulAssign<i32> for Point
[src]pub fn mul_assign(&mut self, rhs: i32)
[src]
pub fn mul_assign(&mut self, rhs: i32)
[src]Performs the *=
operation. Read more
impl SubAssign<Point> for Point
[src]
impl SubAssign<Point> for Point
[src]pub fn sub_assign(&mut self, rhs: Point)
[src]
pub fn sub_assign(&mut self, rhs: Point)
[src]Performs the -=
operation. Read more
impl Copy for Point
[src]
impl Eq for Point
[src]
Auto Trait Implementations
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more