pub enum FrameRate {
Fps23_976,
Fps24,
Fps25,
Fps29_97Df,
Fps29_97Ndf,
Fps30,
Fps48,
Fps50,
Fps59_94Df,
Fps59_94Ndf,
Fps60,
}Variants§
Implementations§
Source§impl FrameRate
impl FrameRate
pub const fn rational(self) -> Rational
pub const fn nominal(self) -> u32
pub const fn is_drop_frame(self) -> bool
pub const fn drop_count(self) -> u32
pub fn to_f64(self) -> f64
pub fn from_float(fps: f64, drop_frame: bool) -> Option<Self>
pub const fn discriminant(self) -> u8
pub fn from_discriminant(d: u8) -> Option<Self>
Trait Implementations§
impl Copy for FrameRate
impl Eq for FrameRate
impl StructuralPartialEq for FrameRate
Auto Trait Implementations§
impl Freeze for FrameRate
impl RefUnwindSafe for FrameRate
impl Send for FrameRate
impl Sync for FrameRate
impl Unpin for FrameRate
impl UnsafeUnpin for FrameRate
impl UnwindSafe for FrameRate
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