pub struct CanvasPoint {
pub x: f32,
pub y: f32,
}Expand description
A 2D point in canvas space.
Fields§
§x: f32X coordinate.
y: f32Y coordinate.
Implementations§
Trait Implementations§
Source§impl Clone for CanvasPoint
impl Clone for CanvasPoint
Source§fn clone(&self) -> CanvasPoint
fn clone(&self) -> CanvasPoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CanvasPoint
Source§impl Debug for CanvasPoint
impl Debug for CanvasPoint
Source§impl Default for CanvasPoint
impl Default for CanvasPoint
Source§fn default() -> CanvasPoint
fn default() -> CanvasPoint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CanvasPoint
impl<'de> Deserialize<'de> for CanvasPoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CanvasPoint
impl PartialEq for CanvasPoint
Source§fn eq(&self, other: &CanvasPoint) -> bool
fn eq(&self, other: &CanvasPoint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CanvasPoint
impl Serialize for CanvasPoint
impl StructuralPartialEq for CanvasPoint
Auto Trait Implementations§
impl Freeze for CanvasPoint
impl RefUnwindSafe for CanvasPoint
impl Send for CanvasPoint
impl Sync for CanvasPoint
impl Unpin for CanvasPoint
impl UnsafeUnpin for CanvasPoint
impl UnwindSafe for CanvasPoint
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