pub struct PhysicalPixelsF(/* private fields */);Implementations§
Source§impl PhysicalPixelsF
impl PhysicalPixelsF
pub fn new(value: f32) -> Self
pub fn zero() -> Self
pub fn is_zero(self) -> bool
pub fn value(self) -> f32
pub fn checked_div(self, other: Self) -> Option<Self>
pub fn checked_div_value(self, other: f32) -> Option<Self>
pub fn checked_rem(self, other: Self) -> Option<Self>
pub fn checked_rem_value(self, other: f32) -> Option<Self>
pub fn max(self, other: Self) -> Self
pub fn min(self, other: Self) -> Self
Trait Implementations§
Source§impl Add for PhysicalPixelsF
impl Add for PhysicalPixelsF
Source§impl Add<PhysicalPixelsF> for f32
impl Add<PhysicalPixelsF> for f32
Source§type Output = PhysicalPixelsF
type Output = PhysicalPixelsF
The resulting type after applying the
+ operator.Source§impl Add<f32> for PhysicalPixelsF
impl Add<f32> for PhysicalPixelsF
Source§impl AddAssign for PhysicalPixelsF
impl AddAssign for PhysicalPixelsF
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl AddAssign<PhysicalPixelsF> for f32
impl AddAssign<PhysicalPixelsF> for f32
Source§fn add_assign(&mut self, other: PhysicalPixelsF)
fn add_assign(&mut self, other: PhysicalPixelsF)
Performs the
+= operation. Read moreSource§impl AddAssign<f32> for PhysicalPixelsF
impl AddAssign<f32> for PhysicalPixelsF
Source§fn add_assign(&mut self, other: f32)
fn add_assign(&mut self, other: f32)
Performs the
+= operation. Read moreSource§impl Clone for PhysicalPixelsF
impl Clone for PhysicalPixelsF
Source§fn clone(&self) -> PhysicalPixelsF
fn clone(&self) -> PhysicalPixelsF
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 PhysicalPixelsF
Source§impl Debug for PhysicalPixelsF
impl Debug for PhysicalPixelsF
Source§impl Default for PhysicalPixelsF
impl Default for PhysicalPixelsF
Source§fn default() -> PhysicalPixelsF
fn default() -> PhysicalPixelsF
Returns the “default value” for a type. Read more
Source§impl From<PhysicalPixels> for PhysicalPixelsF
impl From<PhysicalPixels> for PhysicalPixelsF
Source§fn from(value: PhysicalPixels) -> Self
fn from(value: PhysicalPixels) -> Self
Converts to this type from the input type.
Source§impl From<PhysicalPixelsF> for f32
impl From<PhysicalPixelsF> for f32
Source§fn from(value: PhysicalPixelsF) -> Self
fn from(value: PhysicalPixelsF) -> Self
Converts to this type from the input type.
Source§impl From<PhysicalPixelsF> for PhysicalPixels
impl From<PhysicalPixelsF> for PhysicalPixels
Source§fn from(value: PhysicalPixelsF) -> Self
fn from(value: PhysicalPixelsF) -> Self
Converts to this type from the input type.
Source§impl From<f32> for PhysicalPixelsF
impl From<f32> for PhysicalPixelsF
Source§impl InLogicalScale<LogicalPixels> for PhysicalPixelsF
impl InLogicalScale<LogicalPixels> for PhysicalPixelsF
fn in_logical_scale(&self, scale_factor: &ScaleFactor) -> LogicalPixels
Source§impl InPhysicalScale<PhysicalPixelsF> for LogicalPixels
impl InPhysicalScale<PhysicalPixelsF> for LogicalPixels
fn in_physical_scale(&self, scale_factor: &ScaleFactor) -> PhysicalPixelsF
Source§impl Mul for PhysicalPixelsF
impl Mul for PhysicalPixelsF
Source§impl Mul<PhysicalPixelsF> for f32
impl Mul<PhysicalPixelsF> for f32
Source§type Output = PhysicalPixelsF
type Output = PhysicalPixelsF
The resulting type after applying the
* operator.Source§impl Mul<f32> for PhysicalPixelsF
impl Mul<f32> for PhysicalPixelsF
Source§impl MulAssign for PhysicalPixelsF
impl MulAssign for PhysicalPixelsF
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl MulAssign<PhysicalPixelsF> for f32
impl MulAssign<PhysicalPixelsF> for f32
Source§fn mul_assign(&mut self, other: PhysicalPixelsF)
fn mul_assign(&mut self, other: PhysicalPixelsF)
Performs the
*= operation. Read moreSource§impl MulAssign<f32> for PhysicalPixelsF
impl MulAssign<f32> for PhysicalPixelsF
Source§fn mul_assign(&mut self, other: f32)
fn mul_assign(&mut self, other: f32)
Performs the
*= operation. Read moreSource§impl PartialEq for PhysicalPixelsF
impl PartialEq for PhysicalPixelsF
Source§impl PartialOrd for PhysicalPixelsF
impl PartialOrd for PhysicalPixelsF
impl StructuralPartialEq for PhysicalPixelsF
Source§impl Sub for PhysicalPixelsF
impl Sub for PhysicalPixelsF
Source§impl Sub<PhysicalPixelsF> for f32
impl Sub<PhysicalPixelsF> for f32
Source§type Output = PhysicalPixelsF
type Output = PhysicalPixelsF
The resulting type after applying the
- operator.Source§impl Sub<f32> for PhysicalPixelsF
impl Sub<f32> for PhysicalPixelsF
Source§impl SubAssign for PhysicalPixelsF
impl SubAssign for PhysicalPixelsF
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreSource§impl SubAssign<PhysicalPixelsF> for f32
impl SubAssign<PhysicalPixelsF> for f32
Source§fn sub_assign(&mut self, other: PhysicalPixelsF)
fn sub_assign(&mut self, other: PhysicalPixelsF)
Performs the
-= operation. Read moreSource§impl SubAssign<f32> for PhysicalPixelsF
impl SubAssign<f32> for PhysicalPixelsF
Source§fn sub_assign(&mut self, other: f32)
fn sub_assign(&mut self, other: f32)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for PhysicalPixelsF
impl RefUnwindSafe for PhysicalPixelsF
impl Send for PhysicalPixelsF
impl Sync for PhysicalPixelsF
impl Unpin for PhysicalPixelsF
impl UnsafeUnpin for PhysicalPixelsF
impl UnwindSafe for PhysicalPixelsF
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