Image fit options.
Keep original size.
Scale to width.
Scale to height.
Zoom by factor.
pub fn fit_to(&self, size: ScreenSize) -> Option<ScreenSize>[src]
size preprocessed according to
impl StructuralPartialEq for FitTo[src]
impl RefUnwindSafe for FitTo
impl UnwindSafe for FitTo
type Owned = T
The resulting type after obtaining ownership.
pub fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.