[−][src]Struct qt_core::Qfloat16
This header file provides support for half-precision (16-bit) floating point data with the class qfloat16
. It is fully compliant with IEEE 754 as a storage type. This implies that any arithmetic operation on a qfloat16
instance results in the value first being converted to a float
. This conversion to and from float
is performed by hardware when possible, but on processors that do not natively support half-precision, the conversion is performed through a sequence of lookup table operations.
C++ class: qfloat16
.
This header file provides support for half-precision (16-bit) floating point data with the class qfloat16
. It is fully compliant with IEEE 754 as a storage type. This implies that any arithmetic operation on a qfloat16
instance results in the value first being converted to a float
. This conversion to and from float
is performed by hardware when possible, but on processors that do not natively support half-precision, the conversion is performed through a sequence of lookup table operations.
qfloat16
should be treated as if it were a POD (plain old data) type. Consequently, none of the supported operations need any elaboration beyond stating that it supports all arithmetic operators incident to floating point types.
Methods
impl Qfloat16
[src]
pub unsafe fn add(&self, rhs: c_float) -> c_float
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: float operator+(qfloat16 lhs, float rhs)
.
pub unsafe fn add_assign_double(&self, rhs: c_double) -> Ref<Qfloat16>
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: qfloat16& operator+=(qfloat16& lhs, double rhs)
.
pub unsafe fn add_assign_float(&self, rhs: c_float) -> Ref<Qfloat16>
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: qfloat16& operator+=(qfloat16& lhs, float rhs)
.
pub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<Qfloat16>>
) -> Ref<Qfloat16>
[src]
&self,
other: impl CastInto<Ref<Qfloat16>>
) -> Ref<Qfloat16>
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.This header file provides support for half-precision (16-bit) floating point data with the class qfloat16
. It is fully compliant with IEEE 754 as a storage type. This implies that any arithmetic operation on a qfloat16
instance results in the value first being converted to a float
. This conversion to and from float
is performed by hardware when possible, but on processors that do not natively support half-precision, the conversion is performed through a sequence of lookup table operations.
Calls C++ function: qfloat16& qfloat16::operator=(const qfloat16& other)
.
This header file provides support for half-precision (16-bit) floating point data with the class qfloat16
. It is fully compliant with IEEE 754 as a storage type. This implies that any arithmetic operation on a qfloat16
instance results in the value first being converted to a float
. This conversion to and from float
is performed by hardware when possible, but on processors that do not natively support half-precision, the conversion is performed through a sequence of lookup table operations.
qfloat16
should be treated as if it were a POD (plain old data) type. Consequently, none of the supported operations need any elaboration beyond stating that it supports all arithmetic operators incident to floating point types.
pub unsafe fn div(&self, rhs: c_float) -> c_float
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: float operator/(qfloat16 lhs, float rhs)
.
pub unsafe fn div_assign_double(&self, rhs: c_double) -> Ref<Qfloat16>
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: qfloat16& operator/=(qfloat16& lhs, double rhs)
.
pub unsafe fn div_assign_float(&self, rhs: c_float) -> Ref<Qfloat16>
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: qfloat16& operator/=(qfloat16& lhs, float rhs)
.
pub unsafe fn eq(&self, rhs: c_float) -> bool
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Returns true
if c1 and c2 are the same Unicode character; otherwise returns false
.
Calls C++ function: bool operator==(qfloat16 lhs, float rhs)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator==(QChar c1, QChar c2)
:
Returns true
if c1 and c2 are the same Unicode character; otherwise returns false
.
pub unsafe fn fp_classify(&self) -> c_int
[src]
cpp_lib_version="5.14.0"
only.Calls C++ function: int qfloat16::fpClassify() const
.
pub unsafe fn ge(&self, rhs: c_float) -> bool
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Returns true
if the numeric Unicode value of c1 is greater than or equal to that of c2; otherwise returns false
.
Calls C++ function: bool operator>=(qfloat16 lhs, float rhs)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator>=(QChar c1, QChar c2)
:
Returns true
if the numeric Unicode value of c1 is greater than or equal to that of c2; otherwise returns false
.
pub unsafe fn gt(&self, rhs: c_float) -> bool
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: bool operator>(qfloat16 lhs, float rhs)
.
pub unsafe fn is_finite(&self) -> bool
[src]
cpp_lib_version="5.14.0"
only.Calls C++ function: bool qfloat16::isFinite() const
.
pub unsafe fn is_inf(&self) -> bool
[src]
cpp_lib_version="5.14.0"
only.Calls C++ function: bool qfloat16::isInf() const
.
pub unsafe fn is_nan(&self) -> bool
[src]
cpp_lib_version="5.14.0"
only.Calls C++ function: bool qfloat16::isNaN() const
.
pub unsafe fn is_normal(&self) -> bool
[src]
cpp_lib_version="5.14.0"
only.Calls C++ function: bool qfloat16::isNormal() const
.
pub unsafe fn le(&self, rhs: c_float) -> bool
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Returns true
if the numeric Unicode value of c1 is less than or equal to that of c2; otherwise returns false
.
Calls C++ function: bool operator<=(qfloat16 lhs, float rhs)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator<=(QChar c1, QChar c2)
:
Returns true
if the numeric Unicode value of c1 is less than or equal to that of c2; otherwise returns false
.
pub unsafe fn limit_denorm_min() -> CppBox<Qfloat16>
[src]
cpp_lib_version="5.14.0"
only.Calls C++ function: static qfloat16 qfloat16::_limit_denorm_min()
.
pub unsafe fn limit_epsilon() -> CppBox<Qfloat16>
[src]
cpp_lib_version="5.14.0"
only.Calls C++ function: static qfloat16 qfloat16::_limit_epsilon()
.
pub unsafe fn limit_infinity() -> CppBox<Qfloat16>
[src]
cpp_lib_version="5.14.0"
only.Calls C++ function: static qfloat16 qfloat16::_limit_infinity()
.
pub unsafe fn limit_lowest() -> CppBox<Qfloat16>
[src]
cpp_lib_version="5.14.0"
only.Calls C++ function: static qfloat16 qfloat16::_limit_lowest()
.
pub unsafe fn limit_max() -> CppBox<Qfloat16>
[src]
cpp_lib_version="5.14.0"
only.Calls C++ function: static qfloat16 qfloat16::_limit_max()
.
pub unsafe fn limit_min() -> CppBox<Qfloat16>
[src]
cpp_lib_version="5.14.0"
only.Calls C++ function: static qfloat16 qfloat16::_limit_min()
.
pub unsafe fn limit_quiet_nan() -> CppBox<Qfloat16>
[src]
cpp_lib_version="5.14.0"
only.Calls C++ function: static qfloat16 qfloat16::_limit_quiet_NaN()
.
pub unsafe fn lt(&self, rhs: c_float) -> bool
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: bool operator<(qfloat16 lhs, float rhs)
.
pub unsafe fn mul(&self, rhs: c_float) -> c_float
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: float operator*(qfloat16 lhs, float rhs)
.
pub unsafe fn mul_assign_double(&self, rhs: c_double) -> Ref<Qfloat16>
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: qfloat16& operator*=(qfloat16& lhs, double rhs)
.
pub unsafe fn mul_assign_float(&self, rhs: c_float) -> Ref<Qfloat16>
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: qfloat16& operator*=(qfloat16& lhs, float rhs)
.
pub unsafe fn neg(&self) -> CppBox<Qfloat16>
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: qfloat16 operator-(qfloat16 a)
.
pub unsafe fn new_0a() -> CppBox<Qfloat16>
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: [constructor] void qfloat16::qfloat16()
.
pub unsafe fn new_1a(f: c_float) -> CppBox<Qfloat16>
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: [constructor] void qfloat16::qfloat16(float f)
.
pub unsafe fn new_copy(other: impl CastInto<Ref<Qfloat16>>) -> CppBox<Qfloat16>
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.This header file provides support for half-precision (16-bit) floating point data with the class qfloat16
. It is fully compliant with IEEE 754 as a storage type. This implies that any arithmetic operation on a qfloat16
instance results in the value first being converted to a float
. This conversion to and from float
is performed by hardware when possible, but on processors that do not natively support half-precision, the conversion is performed through a sequence of lookup table operations.
Calls C++ function: [constructor] void qfloat16::qfloat16(const qfloat16& other)
.
This header file provides support for half-precision (16-bit) floating point data with the class qfloat16
. It is fully compliant with IEEE 754 as a storage type. This implies that any arithmetic operation on a qfloat16
instance results in the value first being converted to a float
. This conversion to and from float
is performed by hardware when possible, but on processors that do not natively support half-precision, the conversion is performed through a sequence of lookup table operations.
qfloat16
should be treated as if it were a POD (plain old data) type. Consequently, none of the supported operations need any elaboration beyond stating that it supports all arithmetic operators incident to floating point types.
pub unsafe fn sub(&self, rhs: c_float) -> c_float
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: float operator-(qfloat16 lhs, float rhs)
.
pub unsafe fn sub_assign_double(&self, rhs: c_double) -> Ref<Qfloat16>
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: qfloat16& operator-=(qfloat16& lhs, double rhs)
.
pub unsafe fn sub_assign_float(&self, rhs: c_float) -> Ref<Qfloat16>
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: qfloat16& operator-=(qfloat16& lhs, float rhs)
.
pub unsafe fn to_float(&self) -> c_float
[src]
cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: float qfloat16::operator float() const
.
Trait Implementations
impl<'_> Add<Ref<Qfloat16>> for &'_ Qfloat16
[src]
type Output = CppBox<Qfloat16>
The resulting type after applying the +
operator.
fn add(self, b: Ref<Qfloat16>) -> CppBox<Qfloat16>
[src]
Calls C++ function: qfloat16 operator+(qfloat16 a, qfloat16 b)
.
impl<'_> Add<f64> for &'_ Qfloat16
[src]
type Output = c_double
The resulting type after applying the +
operator.
fn add(self, rhs: c_double) -> c_double
[src]
Calls C++ function: double operator+(qfloat16 lhs, double rhs)
.
impl<'_> Add<i32> for &'_ Qfloat16
[src]
type Output = c_double
The resulting type after applying the +
operator.
fn add(self, rhs: c_int) -> c_double
[src]
Calls C++ function: double operator+(qfloat16 lhs, int rhs)
.
impl CppDeletable for Qfloat16
[src]
unsafe fn delete(&self)
[src]
This header file provides support for half-precision (16-bit) floating point data with the class qfloat16
. It is fully compliant with IEEE 754 as a storage type. This implies that any arithmetic operation on a qfloat16
instance results in the value first being converted to a float
. This conversion to and from float
is performed by hardware when possible, but on processors that do not natively support half-precision, the conversion is performed through a sequence of lookup table operations.
Calls C++ function: [destructor] void qfloat16::~qfloat16()
.
This header file provides support for half-precision (16-bit) floating point data with the class qfloat16
. It is fully compliant with IEEE 754 as a storage type. This implies that any arithmetic operation on a qfloat16
instance results in the value first being converted to a float
. This conversion to and from float
is performed by hardware when possible, but on processors that do not natively support half-precision, the conversion is performed through a sequence of lookup table operations.
qfloat16
should be treated as if it were a POD (plain old data) type. Consequently, none of the supported operations need any elaboration beyond stating that it supports all arithmetic operators incident to floating point types.
impl<'_> Div<Ref<Qfloat16>> for &'_ Qfloat16
[src]
type Output = CppBox<Qfloat16>
The resulting type after applying the /
operator.
fn div(self, b: Ref<Qfloat16>) -> CppBox<Qfloat16>
[src]
Calls C++ function: qfloat16 operator/(qfloat16 a, qfloat16 b)
.
impl<'_> Div<f64> for &'_ Qfloat16
[src]
type Output = c_double
The resulting type after applying the /
operator.
fn div(self, rhs: c_double) -> c_double
[src]
Calls C++ function: double operator/(qfloat16 lhs, double rhs)
.
impl<'_> Div<i32> for &'_ Qfloat16
[src]
type Output = c_double
The resulting type after applying the /
operator.
fn div(self, rhs: c_int) -> c_double
[src]
Calls C++ function: double operator/(qfloat16 lhs, int rhs)
.
impl Ge<Ref<Qfloat16>> for Qfloat16
[src]
unsafe fn ge(&self, b: &Ref<Qfloat16>) -> bool
[src]
Returns true
if the numeric Unicode value of c1 is greater than or equal to that of c2; otherwise returns false
.
Calls C++ function: bool operator>=(qfloat16 a, qfloat16 b)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator>=(QChar c1, QChar c2)
:
Returns true
if the numeric Unicode value of c1 is greater than or equal to that of c2; otherwise returns false
.
impl Ge<f64> for Qfloat16
[src]
unsafe fn ge(&self, rhs: &c_double) -> bool
[src]
Returns true
if the numeric Unicode value of c1 is greater than or equal to that of c2; otherwise returns false
.
Calls C++ function: bool operator>=(qfloat16 lhs, double rhs)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator>=(QChar c1, QChar c2)
:
Returns true
if the numeric Unicode value of c1 is greater than or equal to that of c2; otherwise returns false
.
impl Ge<i32> for Qfloat16
[src]
unsafe fn ge(&self, b: &c_int) -> bool
[src]
Returns true
if the numeric Unicode value of c1 is greater than or equal to that of c2; otherwise returns false
.
Calls C++ function: bool operator>=(qfloat16 a, int b)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator>=(QChar c1, QChar c2)
:
Returns true
if the numeric Unicode value of c1 is greater than or equal to that of c2; otherwise returns false
.
impl Gt<Ref<Qfloat16>> for Qfloat16
[src]
unsafe fn gt(&self, b: &Ref<Qfloat16>) -> bool
[src]
Calls C++ function: bool operator>(qfloat16 a, qfloat16 b)
.
impl Gt<f64> for Qfloat16
[src]
unsafe fn gt(&self, rhs: &c_double) -> bool
[src]
Calls C++ function: bool operator>(qfloat16 lhs, double rhs)
.
impl Gt<i32> for Qfloat16
[src]
impl Le<Ref<Qfloat16>> for Qfloat16
[src]
unsafe fn le(&self, b: &Ref<Qfloat16>) -> bool
[src]
Returns true
if the numeric Unicode value of c1 is less than or equal to that of c2; otherwise returns false
.
Calls C++ function: bool operator<=(qfloat16 a, qfloat16 b)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator<=(QChar c1, QChar c2)
:
Returns true
if the numeric Unicode value of c1 is less than or equal to that of c2; otherwise returns false
.
impl Le<f64> for Qfloat16
[src]
unsafe fn le(&self, rhs: &c_double) -> bool
[src]
Returns true
if the numeric Unicode value of c1 is less than or equal to that of c2; otherwise returns false
.
Calls C++ function: bool operator<=(qfloat16 lhs, double rhs)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator<=(QChar c1, QChar c2)
:
Returns true
if the numeric Unicode value of c1 is less than or equal to that of c2; otherwise returns false
.
impl Le<i32> for Qfloat16
[src]
unsafe fn le(&self, b: &c_int) -> bool
[src]
Returns true
if the numeric Unicode value of c1 is less than or equal to that of c2; otherwise returns false
.
Calls C++ function: bool operator<=(qfloat16 a, int b)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator<=(QChar c1, QChar c2)
:
Returns true
if the numeric Unicode value of c1 is less than or equal to that of c2; otherwise returns false
.
impl Lt<Ref<Qfloat16>> for Qfloat16
[src]
unsafe fn lt(&self, b: &Ref<Qfloat16>) -> bool
[src]
Calls C++ function: bool operator<(qfloat16 a, qfloat16 b)
.
impl Lt<f64> for Qfloat16
[src]
unsafe fn lt(&self, rhs: &c_double) -> bool
[src]
Calls C++ function: bool operator<(qfloat16 lhs, double rhs)
.
impl Lt<i32> for Qfloat16
[src]
impl<'_> Mul<Ref<Qfloat16>> for &'_ Qfloat16
[src]
type Output = CppBox<Qfloat16>
The resulting type after applying the *
operator.
fn mul(self, b: Ref<Qfloat16>) -> CppBox<Qfloat16>
[src]
Calls C++ function: qfloat16 operator*(qfloat16 a, qfloat16 b)
.
impl<'_> Mul<f64> for &'_ Qfloat16
[src]
type Output = c_double
The resulting type after applying the *
operator.
fn mul(self, rhs: c_double) -> c_double
[src]
Calls C++ function: double operator*(qfloat16 lhs, double rhs)
.
impl<'_> Mul<i32> for &'_ Qfloat16
[src]
type Output = c_double
The resulting type after applying the *
operator.
fn mul(self, rhs: c_int) -> c_double
[src]
Calls C++ function: double operator*(qfloat16 lhs, int rhs)
.
impl PartialEq<Ref<Qfloat16>> for Qfloat16
[src]
fn eq(&self, b: &Ref<Qfloat16>) -> bool
[src]
Returns true
if c1 and c2 are the same Unicode character; otherwise returns false
.
Calls C++ function: bool operator==(qfloat16 a, qfloat16 b)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator==(QChar c1, QChar c2)
:
Returns true
if c1 and c2 are the same Unicode character; otherwise returns false
.
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<f64> for Qfloat16
[src]
fn eq(&self, rhs: &c_double) -> bool
[src]
Returns true
if c1 and c2 are the same Unicode character; otherwise returns false
.
Calls C++ function: bool operator==(qfloat16 lhs, double rhs)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator==(QChar c1, QChar c2)
:
Returns true
if c1 and c2 are the same Unicode character; otherwise returns false
.
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<i32> for Qfloat16
[src]
fn eq(&self, b: &c_int) -> bool
[src]
Returns true
if c1 and c2 are the same Unicode character; otherwise returns false
.
Calls C++ function: bool operator==(qfloat16 a, int b)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator==(QChar c1, QChar c2)
:
Returns true
if c1 and c2 are the same Unicode character; otherwise returns false
.
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'_> Sub<Ref<Qfloat16>> for &'_ Qfloat16
[src]
type Output = CppBox<Qfloat16>
The resulting type after applying the -
operator.
fn sub(self, b: Ref<Qfloat16>) -> CppBox<Qfloat16>
[src]
Calls C++ function: qfloat16 operator-(qfloat16 a, qfloat16 b)
.
impl<'_> Sub<f64> for &'_ Qfloat16
[src]
type Output = c_double
The resulting type after applying the -
operator.
fn sub(self, rhs: c_double) -> c_double
[src]
Calls C++ function: double operator-(qfloat16 lhs, double rhs)
.
impl<'_> Sub<i32> for &'_ Qfloat16
[src]
Auto Trait Implementations
impl RefUnwindSafe for Qfloat16
impl Send for Qfloat16
impl Sync for Qfloat16
impl Unpin for Qfloat16
impl UnwindSafe for Qfloat16
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,