Enum resvg::FitTo [] [src]

pub enum FitTo {
    Original,
    Width(u32),
    Height(u32),
    Zoom(f32),
}

Image fit options.

Variants

Keep original size.

Scale to width.

Scale to height.

Zoom by factor.

Trait Implementations

impl Clone for FitTo
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for FitTo
[src]

impl PartialEq for FitTo
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for FitTo
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for FitTo

impl Sync for FitTo