Skip to main content

PhysicalPixels

Struct PhysicalPixels 

Source
pub struct PhysicalPixels(/* private fields */);

Implementations§

Source§

impl PhysicalPixels

Source

pub fn new(value: u32) -> Self

Source

pub fn zero() -> Self

Source

pub fn is_zero(self) -> bool

Source

pub fn value(self) -> u32

Source

pub fn checked_div(self, other: Self) -> Option<Self>

Source

pub fn checked_div_value(self, other: u32) -> Option<Self>

Source

pub fn checked_rem(self, other: Self) -> Option<Self>

Source

pub fn checked_rem_value(self, other: u32) -> Option<Self>

Source

pub fn max(self, other: Self) -> Self

Source

pub fn min(self, other: Self) -> Self

Trait Implementations§

Source§

impl Add for PhysicalPixels

Source§

type Output = PhysicalPixels

The resulting type after applying the + operator.
Source§

fn add(self, other: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<PhysicalPixels> for u32

Source§

type Output = PhysicalPixels

The resulting type after applying the + operator.
Source§

fn add(self, other: PhysicalPixels) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<u32> for PhysicalPixels

Source§

type Output = PhysicalPixels

The resulting type after applying the + operator.
Source§

fn add(self, other: u32) -> Self::Output

Performs the + operation. Read more
Source§

impl AddAssign for PhysicalPixels

Source§

fn add_assign(&mut self, other: Self)

Performs the += operation. Read more
Source§

impl AddAssign<PhysicalPixels> for u32

Source§

fn add_assign(&mut self, other: PhysicalPixels)

Performs the += operation. Read more
Source§

impl AddAssign<u32> for PhysicalPixels

Source§

fn add_assign(&mut self, other: u32)

Performs the += operation. Read more
Source§

impl Clone for PhysicalPixels

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Copy for PhysicalPixels

Source§

impl Debug for PhysicalPixels

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PhysicalPixels

Source§

fn default() -> PhysicalPixels

Returns the “default value” for a type. Read more
Source§

impl From<PhysicalPixels> for u32

Source§

fn from(value: PhysicalPixels) -> Self

Converts to this type from the input type.
Source§

impl From<PhysicalPixels> for PhysicalPixelsF

Source§

fn from(value: PhysicalPixels) -> Self

Converts to this type from the input type.
Source§

impl From<PhysicalPixelsF> for PhysicalPixels

Source§

fn from(value: PhysicalPixelsF) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for PhysicalPixels

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl InLogicalScale<LogicalPixels> for PhysicalPixels

Source§

impl InPhysicalScale<PhysicalPixels> for LogicalPixels

Source§

impl Mul for PhysicalPixels

Source§

type Output = PhysicalPixels

The resulting type after applying the * operator.
Source§

fn mul(self, other: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<PhysicalPixels> for u32

Source§

type Output = PhysicalPixels

The resulting type after applying the * operator.
Source§

fn mul(self, other: PhysicalPixels) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<u32> for PhysicalPixels

Source§

type Output = PhysicalPixels

The resulting type after applying the * operator.
Source§

fn mul(self, other: u32) -> Self::Output

Performs the * operation. Read more
Source§

impl MulAssign for PhysicalPixels

Source§

fn mul_assign(&mut self, other: Self)

Performs the *= operation. Read more
Source§

impl MulAssign<PhysicalPixels> for u32

Source§

fn mul_assign(&mut self, other: PhysicalPixels)

Performs the *= operation. Read more
Source§

impl MulAssign<u32> for PhysicalPixels

Source§

fn mul_assign(&mut self, other: u32)

Performs the *= operation. Read more
Source§

impl PartialEq for PhysicalPixels

Source§

fn eq(&self, other: &PhysicalPixels) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for PhysicalPixels

Source§

fn partial_cmp(&self, other: &PhysicalPixels) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for PhysicalPixels

Source§

impl Sub for PhysicalPixels

Source§

type Output = PhysicalPixels

The resulting type after applying the - operator.
Source§

fn sub(self, other: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<PhysicalPixels> for u32

Source§

type Output = PhysicalPixels

The resulting type after applying the - operator.
Source§

fn sub(self, other: PhysicalPixels) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<u32> for PhysicalPixels

Source§

type Output = PhysicalPixels

The resulting type after applying the - operator.
Source§

fn sub(self, other: u32) -> Self::Output

Performs the - operation. Read more
Source§

impl SubAssign for PhysicalPixels

Source§

fn sub_assign(&mut self, other: Self)

Performs the -= operation. Read more
Source§

impl SubAssign<PhysicalPixels> for u32

Source§

fn sub_assign(&mut self, other: PhysicalPixels)

Performs the -= operation. Read more
Source§

impl SubAssign<u32> for PhysicalPixels

Source§

fn sub_assign(&mut self, other: u32)

Performs the -= operation. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.