pub struct PhysicalPixelsPoint {
pub x: PhysicalPixels,
pub y: PhysicalPixels,
}Fields§
§x: PhysicalPixels§y: PhysicalPixelsImplementations§
Source§impl PhysicalPixelsPoint
impl PhysicalPixelsPoint
pub fn new(x: PhysicalPixels, y: PhysicalPixels) -> Self
pub fn zero() -> Self
pub fn distance(self, other: Self) -> f32
Trait Implementations§
Source§impl Add for PhysicalPixelsPoint
impl Add for PhysicalPixelsPoint
Source§impl Clone for PhysicalPixelsPoint
impl Clone for PhysicalPixelsPoint
Source§fn clone(&self) -> PhysicalPixelsPoint
fn clone(&self) -> PhysicalPixelsPoint
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 PhysicalPixelsPoint
Source§impl Debug for PhysicalPixelsPoint
impl Debug for PhysicalPixelsPoint
Source§impl Default for PhysicalPixelsPoint
impl Default for PhysicalPixelsPoint
Source§fn default() -> PhysicalPixelsPoint
fn default() -> PhysicalPixelsPoint
Returns the “default value” for a type. Read more
Source§impl From<(PhysicalPixels, PhysicalPixels)> for PhysicalPixelsPoint
impl From<(PhysicalPixels, PhysicalPixels)> for PhysicalPixelsPoint
Source§fn from(tuple: (PhysicalPixels, PhysicalPixels)) -> Self
fn from(tuple: (PhysicalPixels, PhysicalPixels)) -> Self
Converts to this type from the input type.
Source§impl From<PhysicalPixelsFPoint> for PhysicalPixelsPoint
impl From<PhysicalPixelsFPoint> for PhysicalPixelsPoint
Source§fn from(point: PhysicalPixelsFPoint) -> Self
fn from(point: PhysicalPixelsFPoint) -> Self
Converts to this type from the input type.
Source§impl From<PhysicalPixelsPoint> for [PhysicalPixels; 2]
impl From<PhysicalPixelsPoint> for [PhysicalPixels; 2]
Source§fn from(point: PhysicalPixelsPoint) -> Self
fn from(point: PhysicalPixelsPoint) -> Self
Converts to this type from the input type.
Source§impl From<PhysicalPixelsPoint> for (PhysicalPixels, PhysicalPixels)
impl From<PhysicalPixelsPoint> for (PhysicalPixels, PhysicalPixels)
Source§fn from(point: PhysicalPixelsPoint) -> Self
fn from(point: PhysicalPixelsPoint) -> Self
Converts to this type from the input type.
Source§impl From<PhysicalPixelsPoint> for [u32; 2]
impl From<PhysicalPixelsPoint> for [u32; 2]
Source§fn from(point: PhysicalPixelsPoint) -> Self
fn from(point: PhysicalPixelsPoint) -> Self
Converts to this type from the input type.
Source§impl From<PhysicalPixelsPoint> for (u32, u32)
impl From<PhysicalPixelsPoint> for (u32, u32)
Source§fn from(point: PhysicalPixelsPoint) -> Self
fn from(point: PhysicalPixelsPoint) -> Self
Converts to this type from the input type.
Source§impl From<PhysicalPixelsPoint> for PhysicalPixelsFPoint
impl From<PhysicalPixelsPoint> for PhysicalPixelsFPoint
Source§fn from(point: PhysicalPixelsPoint) -> Self
fn from(point: PhysicalPixelsPoint) -> Self
Converts to this type from the input type.
Source§impl From<[PhysicalPixels; 2]> for PhysicalPixelsPoint
impl From<[PhysicalPixels; 2]> for PhysicalPixelsPoint
Source§fn from(arr: [PhysicalPixels; 2]) -> Self
fn from(arr: [PhysicalPixels; 2]) -> Self
Converts to this type from the input type.
Source§impl InLogicalScale<LogicalPixelsPoint> for PhysicalPixelsPoint
impl InLogicalScale<LogicalPixelsPoint> for PhysicalPixelsPoint
fn in_logical_scale(&self, scale_factor: &ScaleFactor) -> LogicalPixelsPoint
Source§impl InPhysicalScale<PhysicalPixelsPoint> for LogicalPixelsPoint
impl InPhysicalScale<PhysicalPixelsPoint> for LogicalPixelsPoint
fn in_physical_scale(&self, scale_factor: &ScaleFactor) -> PhysicalPixelsPoint
Source§impl Mul for PhysicalPixelsPoint
impl Mul for PhysicalPixelsPoint
Source§impl PartialEq for PhysicalPixelsPoint
impl PartialEq for PhysicalPixelsPoint
impl StructuralPartialEq for PhysicalPixelsPoint
Auto Trait Implementations§
impl Freeze for PhysicalPixelsPoint
impl RefUnwindSafe for PhysicalPixelsPoint
impl Send for PhysicalPixelsPoint
impl Sync for PhysicalPixelsPoint
impl Unpin for PhysicalPixelsPoint
impl UnsafeUnpin for PhysicalPixelsPoint
impl UnwindSafe for PhysicalPixelsPoint
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