Struct VideoDetails

pub struct VideoDetails { pub width: usize, pub height: usize, pub bit_depth: usize, pub chroma_sampling: ChromaSampling, pub time_base: Rational32 }

Fields

width: usize
height: usize
bit_depth: usize
chroma_sampling: ChromaSampling
time_base: Rational32

Trait Implementations

impl Clone for VideoDetails

fn clone(&self) -> VideoDetails

impl Copy for VideoDetails

impl Debug for VideoDetails

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for VideoDetails

fn default() -> Self

Auto Trait Implementations

impl Freeze for VideoDetails

impl RefUnwindSafe for VideoDetails

impl Send for VideoDetails

impl Sync for VideoDetails

impl Unpin for VideoDetails

impl UnsafeUnpin for VideoDetails

impl UnwindSafe for VideoDetails

Blanket Implementations

impl<T> Any for VideoDetails where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for VideoDetails where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for VideoDetails where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for VideoDetails where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for VideoDetails

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for VideoDetails

impl<T> Pointable for VideoDetails

const ALIGN: usize = _;
type Init = T;
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T> ToOwned for VideoDetails where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for VideoDetails where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for VideoDetails where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for VideoDetails where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>