[][src]Struct qt_core::Qfloat16

#[repr(C)]
pub struct Qfloat16 { /* fields omitted */ }

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.

C++ documentation:

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]

Calls C++ function: float operator+(qfloat16 lhs, float rhs).

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn add_assign(&mut self, rhs: c_float) -> MutRef<Qfloat16>[src]

Calls C++ function: qfloat16& operator+=(qfloat16& lhs, float rhs).

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn copy_from(
    &mut self,
    other: impl CastInto<Ref<Qfloat16>>
) -> MutRef<Qfloat16>
[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: qfloat16& qfloat16::operator=(const qfloat16& other).

C++ documentation:

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.

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn div(&self, rhs: c_float) -> c_float[src]

Calls C++ function: float operator/(qfloat16 lhs, float rhs).

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn div_assign(&mut self, rhs: c_float) -> MutRef<Qfloat16>[src]

Calls C++ function: qfloat16& operator/=(qfloat16& lhs, float rhs).

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn eq(&self, rhs: c_float) -> bool[src]

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.

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn fp_classify(&self) -> c_int[src]

Calls C++ function: int qfloat16::fpClassify() const.

This item is available if cpp_lib_version="5.14.0".

pub unsafe fn ge(&self, rhs: c_float) -> 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, 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.

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn gt(&self, rhs: c_float) -> bool[src]

Calls C++ function: bool operator>(qfloat16 lhs, float rhs).

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn is_finite(&self) -> bool[src]

Calls C++ function: bool qfloat16::isFinite() const.

This item is available if cpp_lib_version="5.14.0".

pub unsafe fn is_inf(&self) -> bool[src]

Calls C++ function: bool qfloat16::isInf() const.

This item is available if cpp_lib_version="5.14.0".

pub unsafe fn is_nan(&self) -> bool[src]

Calls C++ function: bool qfloat16::isNaN() const.

This item is available if cpp_lib_version="5.14.0".

pub unsafe fn is_normal(&self) -> bool[src]

Calls C++ function: bool qfloat16::isNormal() const.

This item is available if cpp_lib_version="5.14.0".

pub unsafe fn le(&self, rhs: c_float) -> 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, 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.

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn limit_denorm_min() -> CppBox<Qfloat16>[src]

Calls C++ function: static qfloat16 qfloat16::_limit_denorm_min().

This item is available if cpp_lib_version="5.14.0".

pub unsafe fn limit_epsilon() -> CppBox<Qfloat16>[src]

Calls C++ function: static qfloat16 qfloat16::_limit_epsilon().

This item is available if cpp_lib_version="5.14.0".

pub unsafe fn limit_infinity() -> CppBox<Qfloat16>[src]

Calls C++ function: static qfloat16 qfloat16::_limit_infinity().

This item is available if cpp_lib_version="5.14.0".

pub unsafe fn limit_lowest() -> CppBox<Qfloat16>[src]

Calls C++ function: static qfloat16 qfloat16::_limit_lowest().

This item is available if cpp_lib_version="5.14.0".

pub unsafe fn limit_max() -> CppBox<Qfloat16>[src]

Calls C++ function: static qfloat16 qfloat16::_limit_max().

This item is available if cpp_lib_version="5.14.0".

pub unsafe fn limit_min() -> CppBox<Qfloat16>[src]

Calls C++ function: static qfloat16 qfloat16::_limit_min().

This item is available if cpp_lib_version="5.14.0".

pub unsafe fn limit_quiet_nan() -> CppBox<Qfloat16>[src]

Calls C++ function: static qfloat16 qfloat16::_limit_quiet_NaN().

This item is available if cpp_lib_version="5.14.0".

pub unsafe fn lt(&self, rhs: c_float) -> bool[src]

Calls C++ function: bool operator<(qfloat16 lhs, float rhs).

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn mul(&self, rhs: c_float) -> c_float[src]

Calls C++ function: float operator*(qfloat16 lhs, float rhs).

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn mul_assign(&mut self, rhs: c_float) -> MutRef<Qfloat16>[src]

Calls C++ function: qfloat16& operator*=(qfloat16& lhs, float rhs).

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn neg(&self) -> CppBox<Qfloat16>[src]

Calls C++ function: qfloat16 operator-(qfloat16 a).

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn new_0a() -> CppBox<Qfloat16>[src]

Calls C++ function: [constructor] void qfloat16::qfloat16().

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn new_1a(f: c_float) -> CppBox<Qfloat16>[src]

Calls C++ function: [constructor] void qfloat16::qfloat16(float f).

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn new_copy(other: impl CastInto<Ref<Qfloat16>>) -> CppBox<Qfloat16>[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: [constructor] void qfloat16::qfloat16(const qfloat16& other).

C++ documentation:

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.

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn sub(&self, rhs: c_float) -> c_float[src]

Calls C++ function: float operator-(qfloat16 lhs, float rhs).

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn sub_assign(&mut self, rhs: c_float) -> MutRef<Qfloat16>[src]

Calls C++ function: qfloat16& operator-=(qfloat16& lhs, float rhs).

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn to_float(&self) -> c_float[src]

Calls C++ function: float qfloat16::operator float() const.

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

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 AddAssign<f64> for Qfloat16[src]

fn add_assign(&mut self, rhs: c_double)[src]

Calls C++ function: qfloat16& operator+=(qfloat16& lhs, double rhs).

impl CppDeletable for Qfloat16[src]

unsafe fn delete(&mut 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().

C++ documentation:

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 DivAssign<f64> for Qfloat16[src]

fn div_assign(&mut self, rhs: c_double)[src]

Calls C++ function: qfloat16& operator/=(qfloat16& lhs, double 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]

unsafe fn gt(&self, b: &c_int) -> bool[src]

Calls C++ function: bool operator>(qfloat16 a, int b).

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]

unsafe fn lt(&self, b: &c_int) -> bool[src]

Calls C++ function: bool operator<(qfloat16 a, int b).

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 MulAssign<f64> for Qfloat16[src]

fn mul_assign(&mut self, rhs: c_double)[src]

Calls C++ function: qfloat16& operator*=(qfloat16& lhs, double 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.

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.

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.

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]

type Output = c_double

The resulting type after applying the - operator.

fn sub(self, rhs: c_int) -> c_double[src]

Calls C++ function: double operator-(qfloat16 lhs, int rhs).

impl SubAssign<f64> for Qfloat16[src]

fn sub_assign(&mut self, rhs: c_double)[src]

Calls C++ function: qfloat16& operator-=(qfloat16& lhs, double rhs).

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.