[][src]Struct show_notes::e031::Point

#[repr(C)]
pub struct Point {
    pub x: f32,
    pub y: f32,
}

A simple struct which we can expose to a C API. Note that it is #[repr(C)]!

Fields

x: f32

x position -- made pub to indicate that we're exposing it to C!

y: f32

y position -- made pub to indicate that we're exposing it to C!

Methods

impl Point[src]

fn translate(&mut self, by_x: f32, by_y: f32)[src]

Auto Trait Implementations

impl Send for Point

impl Unpin for Point

impl Sync for Point

impl RefUnwindSafe for Point

impl UnwindSafe for Point

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]