pub struct SourceFramesPerSecondV1(/* private fields */);Expand description
Validated finite positive source frame rate.
Implementations§
Source§impl SourceFramesPerSecondV1
impl SourceFramesPerSecondV1
Sourcepub fn new(value: f64) -> Result<Self, SourceFactsError>
pub fn new(value: f64) -> Result<Self, SourceFactsError>
Construct a finite positive frame rate.
§Errors
Returns SourceFactsError::InvalidFramesPerSecond for zero, negative, NaN, or infinity.
Trait Implementations§
Source§impl Clone for SourceFramesPerSecondV1
impl Clone for SourceFramesPerSecondV1
Source§fn clone(&self) -> SourceFramesPerSecondV1
fn clone(&self) -> SourceFramesPerSecondV1
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 moreimpl Copy for SourceFramesPerSecondV1
Source§impl Debug for SourceFramesPerSecondV1
impl Debug for SourceFramesPerSecondV1
Source§impl PartialEq for SourceFramesPerSecondV1
impl PartialEq for SourceFramesPerSecondV1
impl StructuralPartialEq for SourceFramesPerSecondV1
Auto Trait Implementations§
impl Freeze for SourceFramesPerSecondV1
impl RefUnwindSafe for SourceFramesPerSecondV1
impl Send for SourceFramesPerSecondV1
impl Sync for SourceFramesPerSecondV1
impl Unpin for SourceFramesPerSecondV1
impl UnsafeUnpin for SourceFramesPerSecondV1
impl UnwindSafe for SourceFramesPerSecondV1
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