Struct show_notes::e031::Point
source · #[repr(C)]pub struct Point {
pub x: f32,
pub y: f32,
}Expand description
A simple struct which we can expose to a C API. Note that it is #[repr(C)]!
Fields§
§x: f32x position – made pub to indicate that we’re exposing it to C!
y: f32y position – made pub to indicate that we’re exposing it to C!
Implementations§
Auto Trait Implementations§
impl Freeze for Point
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more