Struct FrameRate
pub struct FrameRate { /* private fields */ }Implementations§
§impl FrameRate
impl FrameRate
pub fn new(fps: f64) -> Result<FrameRate, FrameRateError>
pub fn fps(&self) -> f64
pub fn frame_duration_seconds(&self) -> f64
pub fn frame_duration_millis(&self) -> f64
Trait Implementations§
impl Copy 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