pub struct Point_type { /* private fields */ }
Implementations§
Source§impl Point_type
impl Point_type
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_type) -> f32
Trait Implementations§
Source§impl Clone for Point_type
impl Clone for Point_type
Source§fn clone(&self) -> Point_type
fn clone(&self) -> Point_type
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Point_type
impl Debug for Point_type
Source§impl Default for Point_type
impl Default for Point_type
Source§fn default() -> Point_type
fn default() -> Point_type
Returns the “default value” for a type. Read more
Source§impl From<Point_type> for (i16, i16)
impl From<Point_type> for (i16, i16)
Source§fn from(Point: Point_type) -> Self
fn from(Point: Point_type) -> Self
Converts to this type from the input type.
Source§impl From<Point_type> for lv_point_t
impl From<Point_type> for lv_point_t
Source§fn from(Point: Point_type) -> Self
fn from(Point: Point_type) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Point_type
impl PartialEq for Point_type
impl Copy for Point_type
impl Eq for Point_type
impl StructuralPartialEq for Point_type
Auto Trait Implementations§
impl Freeze for Point_type
impl RefUnwindSafe for Point_type
impl Send for Point_type
impl Sync for Point_type
impl Unpin for Point_type
impl UnwindSafe for Point_type
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