Struct qt_core::Qfloat16

source ·
#[repr(C)]
pub struct Qfloat16 { /* private fields */ }
Expand description

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.

Implementations§

source§

impl Qfloat16

source

pub unsafe fn add(&self, rhs: c_float) -> c_float

Available on 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).

source

pub unsafe fn add_assign_double(&self, rhs: c_double) -> Ref<Qfloat16>

Available on 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).

source

pub unsafe fn add_assign_float(&self, rhs: c_float) -> Ref<Qfloat16>

Available on 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).

source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<Qfloat16>> ) -> Ref<Qfloat16>

Available on 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).

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.

source

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

Available on 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).

source

pub unsafe fn div_assign_double(&self, rhs: c_double) -> Ref<Qfloat16>

Available on 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).

source

pub unsafe fn div_assign_float(&self, rhs: c_float) -> Ref<Qfloat16>

Available on 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).

source

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

Available on 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.

source

pub unsafe fn fp_classify(&self) -> c_int

Available on cpp_lib_version="5.14.0" only.

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

source

pub unsafe fn ge(&self, rhs: c_float) -> bool

Available on 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.

source

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

Available on 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).

source

pub unsafe fn is_finite(&self) -> bool

Available on cpp_lib_version="5.14.0" only.

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

source

pub unsafe fn is_inf(&self) -> bool

Available on cpp_lib_version="5.14.0" only.

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

source

pub unsafe fn is_nan(&self) -> bool

Available on cpp_lib_version="5.14.0" only.

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

source

pub unsafe fn is_normal(&self) -> bool

Available on cpp_lib_version="5.14.0" only.

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

source

pub unsafe fn le(&self, rhs: c_float) -> bool

Available on 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.

source

pub unsafe fn limit_denorm_min() -> CppBox<Qfloat16>

Available on cpp_lib_version="5.14.0" only.

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

source

pub unsafe fn limit_epsilon() -> CppBox<Qfloat16>

Available on cpp_lib_version="5.14.0" only.

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

source

pub unsafe fn limit_infinity() -> CppBox<Qfloat16>

Available on cpp_lib_version="5.14.0" only.

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

source

pub unsafe fn limit_lowest() -> CppBox<Qfloat16>

Available on cpp_lib_version="5.14.0" only.

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

source

pub unsafe fn limit_max() -> CppBox<Qfloat16>

Available on cpp_lib_version="5.14.0" only.

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

source

pub unsafe fn limit_min() -> CppBox<Qfloat16>

Available on cpp_lib_version="5.14.0" only.

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

source

pub unsafe fn limit_quiet_nan() -> CppBox<Qfloat16>

Available on cpp_lib_version="5.14.0" only.

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

source

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

Available on 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).

source

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

Available on 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).

source

pub unsafe fn mul_assign_double(&self, rhs: c_double) -> Ref<Qfloat16>

Available on 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).

source

pub unsafe fn mul_assign_float(&self, rhs: c_float) -> Ref<Qfloat16>

Available on 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).

source

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

Available on 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).

source

pub unsafe fn new_0a() -> CppBox<Qfloat16>

Available on 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().

source

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

Available on 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).

source

pub unsafe fn new_copy(other: impl CastInto<Ref<Qfloat16>>) -> CppBox<Qfloat16>

Available on 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).

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.

source

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

Available on 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).

source

pub unsafe fn sub_assign_double(&self, rhs: c_double) -> Ref<Qfloat16>

Available on 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).

source

pub unsafe fn sub_assign_float(&self, rhs: c_float) -> Ref<Qfloat16>

Available on 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).

source

pub unsafe fn to_float(&self) -> c_float

Available on 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§

source§

impl Add<Ref<Qfloat16>> for &Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

fn add(self, b: Ref<Qfloat16>) -> CppBox<Qfloat16>

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

§

type Output = CppBox<Qfloat16>

The resulting type after applying the + operator.
source§

impl Add<f64> for &Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

fn add(self, rhs: c_double) -> c_double

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

§

type Output = f64

The resulting type after applying the + operator.
source§

impl Add<i32> for &Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

fn add(self, rhs: c_int) -> c_double

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

§

type Output = f64

The resulting type after applying the + operator.
source§

impl CppDeletable for Qfloat16

source§

unsafe fn delete(&self)

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.

source§

impl Div<Ref<Qfloat16>> for &Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

fn div(self, b: Ref<Qfloat16>) -> CppBox<Qfloat16>

Calls C++ function: qfloat16 operator/(qfloat16 a, qfloat16 b).

§

type Output = CppBox<Qfloat16>

The resulting type after applying the / operator.
source§

impl Div<f64> for &Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

fn div(self, rhs: c_double) -> c_double

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

§

type Output = f64

The resulting type after applying the / operator.
source§

impl Div<i32> for &Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

fn div(self, rhs: c_int) -> c_double

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

§

type Output = f64

The resulting type after applying the / operator.
source§

impl Ge<Ref<Qfloat16>> for Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

unsafe fn ge(&self, b: &Ref<Qfloat16>) -> bool

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.

source§

impl Ge<f64> for Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

unsafe fn ge(&self, rhs: &c_double) -> bool

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.

source§

impl Ge<i32> for Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

unsafe fn ge(&self, b: &c_int) -> bool

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.

source§

impl Gt<Ref<Qfloat16>> for Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

unsafe fn gt(&self, b: &Ref<Qfloat16>) -> bool

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

source§

impl Gt<f64> for Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

unsafe fn gt(&self, rhs: &c_double) -> bool

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

source§

impl Gt<i32> for Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

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

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

source§

impl Le<Ref<Qfloat16>> for Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

unsafe fn le(&self, b: &Ref<Qfloat16>) -> bool

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.

source§

impl Le<f64> for Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

unsafe fn le(&self, rhs: &c_double) -> bool

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.

source§

impl Le<i32> for Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

unsafe fn le(&self, b: &c_int) -> bool

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.

source§

impl Lt<Ref<Qfloat16>> for Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

unsafe fn lt(&self, b: &Ref<Qfloat16>) -> bool

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

source§

impl Lt<f64> for Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

unsafe fn lt(&self, rhs: &c_double) -> bool

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

source§

impl Lt<i32> for Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

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

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

source§

impl Mul<Ref<Qfloat16>> for &Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

fn mul(self, b: Ref<Qfloat16>) -> CppBox<Qfloat16>

Calls C++ function: qfloat16 operator*(qfloat16 a, qfloat16 b).

§

type Output = CppBox<Qfloat16>

The resulting type after applying the * operator.
source§

impl Mul<f64> for &Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

fn mul(self, rhs: c_double) -> c_double

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

§

type Output = f64

The resulting type after applying the * operator.
source§

impl Mul<i32> for &Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

fn mul(self, rhs: c_int) -> c_double

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

§

type Output = f64

The resulting type after applying the * operator.
source§

impl PartialEq<Ref<Qfloat16>> for Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

fn eq(&self, b: &Ref<Qfloat16>) -> bool

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.

1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<f64> for Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

fn eq(&self, rhs: &c_double) -> bool

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.

1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i32> for Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

fn eq(&self, b: &c_int) -> bool

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.

1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Sub<Ref<Qfloat16>> for &Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

fn sub(self, b: Ref<Qfloat16>) -> CppBox<Qfloat16>

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

§

type Output = CppBox<Qfloat16>

The resulting type after applying the - operator.
source§

impl Sub<f64> for &Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

fn sub(self, rhs: c_double) -> c_double

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

§

type Output = f64

The resulting type after applying the - operator.
source§

impl Sub<i32> for &Qfloat16

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

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

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

§

type Output = f64

The resulting type after applying the - operator.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.