Enum jpeg_encoder::Density[][src]

pub enum Density {
    None,
    Inch {
        x: u16,
        y: u16,
    },
    Centimeter {
        x: u16,
        y: u16,
    },
}

Density settings

Variants

None

No pixel density is set, which means “1 pixel per pixel”

Inch

Horizontal and vertical dots per inch (dpi)

Show fields

Fields of Inch

x: u16y: u16
Centimeter

Horizontal and vertical dots per centimeters

Show fields

Fields of Centimeter

x: u16y: u16

Trait Implementations

impl Clone for Density[src]

impl Copy for Density[src]

impl Debug for Density[src]

impl Eq for Density[src]

impl PartialEq<Density> for Density[src]

impl StructuralEq for Density[src]

impl StructuralPartialEq for Density[src]

Auto Trait Implementations

impl RefUnwindSafe for Density

impl Send for Density

impl Sync for Density

impl Unpin for Density

impl UnwindSafe for Density

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.