#[repr(C)]pub struct VideoAspectRatio {
pub value: i32,
}Expand description
Fields§
§value: i32Implementations§
Source§impl VideoAspectRatio
impl VideoAspectRatio
pub fn no_scaling() -> Self
pub fn fit_vertically() -> Self
pub fn fit_horizontally() -> Self
pub fn fit_inside() -> Self
pub fn fit_outside() -> Self
pub fn stretch() -> Self
Trait Implementations§
Source§impl ClassIdentity for VideoAspectRatio
impl ClassIdentity for VideoAspectRatio
Source§impl Clone for VideoAspectRatio
impl Clone for VideoAspectRatio
Source§fn clone(&self) -> VideoAspectRatio
fn clone(&self) -> VideoAspectRatio
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VideoAspectRatio
impl Debug for VideoAspectRatio
Source§impl PartialEq for VideoAspectRatio
impl PartialEq for VideoAspectRatio
impl Copy for VideoAspectRatio
impl Eq for VideoAspectRatio
impl StructuralPartialEq for VideoAspectRatio
Auto Trait Implementations§
impl Freeze for VideoAspectRatio
impl RefUnwindSafe for VideoAspectRatio
impl Send for VideoAspectRatio
impl Sync for VideoAspectRatio
impl Unpin for VideoAspectRatio
impl UnwindSafe for VideoAspectRatio
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)