Enum egg_mode::entities::ResizeMode [−][src]
pub enum ResizeMode {
Fit,
Crop,
}Expand description
Represents how an image has been resized for a given size variant.
Variants
The media was resized to fit one dimension, keeping its aspect ratio.
The media was cropped to fit a specific resolution.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ResizeModeimpl Send for ResizeModeimpl Sync for ResizeModeimpl Unpin for ResizeModeimpl UnwindSafe for ResizeModeBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V