pub struct ParserFrameRateProjectionV1(/* private fields */);Expand description
Exact binary64 payload exposed by a loader for a finite positive custom frame rate.
This preserves the parser projection for evidence and diagnostics. It is not an exact rational rate and cannot authorize an integer frame lattice.
Implementations§
Source§impl ParserFrameRateProjectionV1
impl ParserFrameRateProjectionV1
Sourcepub fn new(value: f64) -> Result<Self, ExactSourceTimingContractError>
pub fn new(value: f64) -> Result<Self, ExactSourceTimingContractError>
Retain the exact finite positive binary64 payload.
Sourcepub const fn binary64_bits(self) -> u64
pub const fn binary64_bits(self) -> u64
Exact IEEE-754 binary64 bit pattern exposed by the parser.
Sourcepub const fn parser_value(self) -> f64
pub const fn parser_value(self) -> f64
Parser-projected floating-point value for display or diagnostics only.
Trait Implementations§
Source§impl Clone for ParserFrameRateProjectionV1
impl Clone for ParserFrameRateProjectionV1
Source§fn clone(&self) -> ParserFrameRateProjectionV1
fn clone(&self) -> ParserFrameRateProjectionV1
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 ParserFrameRateProjectionV1
Source§impl Debug for ParserFrameRateProjectionV1
impl Debug for ParserFrameRateProjectionV1
impl Eq for ParserFrameRateProjectionV1
Source§impl Ord for ParserFrameRateProjectionV1
impl Ord for ParserFrameRateProjectionV1
Source§fn cmp(&self, other: &ParserFrameRateProjectionV1) -> Ordering
fn cmp(&self, other: &ParserFrameRateProjectionV1) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ParserFrameRateProjectionV1
impl PartialOrd for ParserFrameRateProjectionV1
impl StructuralPartialEq for ParserFrameRateProjectionV1
Auto Trait Implementations§
impl Freeze for ParserFrameRateProjectionV1
impl RefUnwindSafe for ParserFrameRateProjectionV1
impl Send for ParserFrameRateProjectionV1
impl Sync for ParserFrameRateProjectionV1
impl Unpin for ParserFrameRateProjectionV1
impl UnsafeUnpin for ParserFrameRateProjectionV1
impl UnwindSafe for ParserFrameRateProjectionV1
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