pub struct Point { /* private fields */ }
Implementations§
Source§impl Point
impl Point
pub const fn new(x: i16, y: i16) -> Self
pub const fn get_x(&self) -> i16
pub const fn get_y(&self) -> i16
pub fn split(self) -> (i16, i16)
pub fn set_x(self, value: i16) -> Self
pub fn set_y(self, value: i16) -> Self
pub fn set(self, x: i16, y: i16) -> Self
pub fn get_distance(&self, other: Point) -> f32
Trait Implementations§
Source§impl From<Point> for lv_point_t
impl From<Point> for lv_point_t
impl Copy for Point
impl Eq for Point
impl StructuralPartialEq for Point
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