Struct qt_core::q_data_stream::FloatingPointPrecision
source · 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 moresource§impl Debug for FloatingPointPrecision
impl Debug for FloatingPointPrecision
source§impl From<FloatingPointPrecision> for c_int
impl From<FloatingPointPrecision> for c_int
source§fn from(value: FloatingPointPrecision) -> Self
fn from(value: FloatingPointPrecision) -> Self
source§impl From<i32> for FloatingPointPrecision
impl From<i32> for FloatingPointPrecision
source§impl PartialEq for FloatingPointPrecision
impl PartialEq for FloatingPointPrecision
source§fn eq(&self, other: &FloatingPointPrecision) -> bool
fn eq(&self, other: &FloatingPointPrecision) -> bool
self
and other
values to be equal, and is used
by ==
.