pub enum SvgFit {
Contain,
Width,
Stretch,
}Variants§
Contain
Uniformly scale to fully fit inside the target rect (no cropping).
Width
Uniformly scale based on target width (height may overflow and should be clipped).
Stretch
Non-uniformly scale to match the target rect (may distort).
Trait Implementations§
impl Copy for SvgFit
impl Eq for SvgFit
impl StructuralPartialEq for SvgFit
Auto Trait Implementations§
impl Freeze for SvgFit
impl RefUnwindSafe for SvgFit
impl Send for SvgFit
impl Sync for SvgFit
impl Unpin for SvgFit
impl UnsafeUnpin for SvgFit
impl UnwindSafe for SvgFit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more