pub enum VideoFit {
Stretch,
Contain,
Cover,
}Expand description
How an input’s aspect ratio is mapped into its VideoRect.
Variants§
Stretch
Distort the input to exactly fill the rectangle.
Contain
Preserve aspect ratio and letterbox/pillarbox inside the rectangle.
Cover
Preserve aspect ratio, fill the rectangle, and crop overflow.
Trait Implementations§
impl Copy for VideoFit
impl Eq for VideoFit
impl StructuralPartialEq for VideoFit
Auto Trait Implementations§
impl Freeze for VideoFit
impl RefUnwindSafe for VideoFit
impl Send for VideoFit
impl Sync for VideoFit
impl Unpin for VideoFit
impl UnsafeUnpin for VideoFit
impl UnwindSafe for VideoFit
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