#[non_exhaustive]pub enum VideoGravity {
ResizeAspect,
ResizeAspectFill,
Resize,
}Expand description
Re-exports the AVPlayer framework surface for this item.
Mirrors the AVPlayer framework counterpart for VideoGravity.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ResizeAspect
Mirrors the AVPlayer framework case ResizeAspect.
ResizeAspectFill
Mirrors the AVPlayer framework case ResizeAspectFill.
Resize
Mirrors the AVPlayer framework case Resize.
Implementations§
Trait Implementations§
Source§impl Clone for VideoGravity
impl Clone for VideoGravity
Source§fn clone(&self) -> VideoGravity
fn clone(&self) -> VideoGravity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VideoGravity
impl Debug for VideoGravity
Source§impl Hash for VideoGravity
impl Hash for VideoGravity
Source§impl PartialEq for VideoGravity
impl PartialEq for VideoGravity
Source§fn eq(&self, other: &VideoGravity) -> bool
fn eq(&self, other: &VideoGravity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for VideoGravity
impl Eq for VideoGravity
impl StructuralPartialEq for VideoGravity
Auto Trait Implementations§
impl Freeze for VideoGravity
impl RefUnwindSafe for VideoGravity
impl Send for VideoGravity
impl Sync for VideoGravity
impl Unpin for VideoGravity
impl UnsafeUnpin for VideoGravity
impl UnwindSafe for VideoGravity
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