Enum PixelDensityUnit

pub enum PixelDensityUnit

Represents a unit in which the density of an image is measured

Variants

PixelAspectRatio

Represents the absence of a unit, the values indicate only a pixel aspect ratio

Inches

Pixels per inch (2.54 cm)

Centimeters

Pixels per centimeter

Trait Implementations

impl Clone for PixelDensityUnit

fn clone(&self) -> PixelDensityUnit

impl Copy for PixelDensityUnit

impl Debug for PixelDensityUnit

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

impl Eq for PixelDensityUnit

impl PartialEq for PixelDensityUnit

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

impl StructuralPartialEq for PixelDensityUnit

Auto Trait Implementations

impl Freeze for PixelDensityUnit

impl RefUnwindSafe for PixelDensityUnit

impl Send for PixelDensityUnit

impl Sync for PixelDensityUnit

impl Unpin for PixelDensityUnit

impl UnsafeUnpin for PixelDensityUnit

impl UnwindSafe for PixelDensityUnit

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for PixelDensityUnit where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for PixelDensityUnit where ST: ?Sized, DT: ?Sized,

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for PixelDensityUnit

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for PixelDensityUnit

impl<T> Pointable for PixelDensityUnit

const ALIGN: usize = _;
type Init = T;
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T> Read<Exclusive, BecauseExclusive> for PixelDensityUnit where T: ?Sized,

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(self) -> U

Calls U::from(self).

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

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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