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