pub struct FloatingPointPrecision(/* private fields */);
Expand description
The precision of floating point numbers used for reading/writing the data. This will only have an effect if the version of the data stream is Qt_4_6 or higher.
C++ enum: QDataStream::FloatingPointPrecision
.
The precision of floating point numbers used for reading/writing the data. This will only have an effect if the version of the data stream is Qt_4_6 or higher.
Warning: The floating point precision must be set to the same value on the object that writes and the object that reads the data stream.
See also setFloatingPointPrecision() and floatingPointPrecision().
Implementations§
Source§impl FloatingPointPrecision
impl FloatingPointPrecision
Sourcepub const SinglePrecision: FloatingPointPrecision
pub const SinglePrecision: FloatingPointPrecision
All floating point numbers in the data stream have 32-bit precision. (C++ enum variant: SinglePrecision = 0
)
Sourcepub const DoublePrecision: FloatingPointPrecision
pub const DoublePrecision: FloatingPointPrecision
All floating point numbers in the data stream have 64-bit precision. (C++ enum variant: DoublePrecision = 1
)
Trait Implementations§
Source§impl Clone for FloatingPointPrecision
impl Clone for FloatingPointPrecision
Source§fn clone(&self) -> FloatingPointPrecision
fn clone(&self) -> FloatingPointPrecision
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more