Struct png::ScaledFloat [−][src]
pub struct ScaledFloat(_);
Expand description
An unsigned integer scaled version of a floating point value, equivalent to an integer quotient with fixed denominator (100_000)).
Implementations
Gets whether the value is within the clamped range of this type.
Slightly inaccurate scaling and quantization. Clamps the value into the representable range if it is negative or too large.
Fully accurate construction from a value scaled as per specification.
Get the accurate encoded value.
Get the unscaled value as a floating point.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ScaledFloat
impl Send for ScaledFloat
impl Sync for ScaledFloat
impl Unpin for ScaledFloat
impl UnwindSafe for ScaledFloat
Blanket Implementations
Mutably borrows from an owned value. Read more