Enum Unit

#[repr(u8)]
pub enum Unit

Physical unit of the pixel dimensions

Variants

Unspecified = 0
Meter = 1

Implementations

impl Unit

fn from_u8(n: u8) -> Option<Unit>

u8 -> Self. Temporary solution until Rust provides a canonical one.

Trait Implementations

impl Clone for Unit

fn clone(&self) -> Self

impl Copy for Unit

impl Debug for Unit

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

impl Eq for Unit

impl PartialEq for Unit

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

impl StructuralPartialEq for Unit

Auto Trait Implementations

impl Freeze for Unit

impl RefUnwindSafe for Unit

impl Send for Unit

impl Sync for Unit

impl Unpin for Unit

impl UnsafeUnpin for Unit

impl UnwindSafe for Unit

Blanket Implementations

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

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

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

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

impl<T> From<T> for Unit

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

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

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

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