Skip to main content

Qfloat16

Struct Qfloat16 

Source
pub struct Qfloat16 { /* private fields */ }
Expand description

C++ class: qfloat16.

Implementations§

Source§

impl Qfloat16

Source

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

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

Source

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

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

Source

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

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

Source

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

Calls C++ function: qfloat16& qfloat16::operator=(const qfloat16& other).

Source

pub unsafe fn copy_sign( &self, sign: impl CastInto<Ref<Qfloat16>>, ) -> CppBox<Qfloat16>

Calls C++ function: qfloat16 qfloat16::copySign(qfloat16 sign) const.

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn fp_classify(&self) -> c_int

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

Source

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

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

Source

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

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

Source

pub unsafe fn is_finite(&self) -> bool

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

Source

pub unsafe fn is_inf(&self) -> bool

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

Source

pub unsafe fn is_nan(&self) -> bool

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

Source

pub unsafe fn is_normal(&self) -> bool

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn to_float(&self) -> c_float

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

Trait Implementations§

Source§

impl Add<Ref<Qfloat16>> for &Qfloat16

Source§

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

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

Source§

type Output = CppBox<Qfloat16>

The resulting type after applying the + operator.
Source§

impl Add<f64> for &Qfloat16

Source§

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

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

Source§

type Output = f64

The resulting type after applying the + operator.
Source§

impl Add<i32> for &Qfloat16

Source§

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

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

Source§

type Output = f64

The resulting type after applying the + operator.
Source§

impl CppDeletable for Qfloat16

Source§

unsafe fn delete(&self)

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

Source§

impl Div<Ref<Qfloat16>> for &Qfloat16

Source§

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

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

Source§

type Output = CppBox<Qfloat16>

The resulting type after applying the / operator.
Source§

impl Div<f64> for &Qfloat16

Source§

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

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

Source§

type Output = f64

The resulting type after applying the / operator.
Source§

impl Div<i32> for &Qfloat16

Source§

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

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

Source§

type Output = f64

The resulting type after applying the / operator.
Source§

impl Ge<Ref<Qfloat16>> for Qfloat16

Source§

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

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

Source§

impl Ge<f64> for Qfloat16

Source§

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

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

Source§

impl Ge<i32> for Qfloat16

Source§

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

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

Source§

impl Gt<Ref<Qfloat16>> for Qfloat16

Source§

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

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

Source§

impl Gt<f64> for Qfloat16

Source§

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

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

Source§

impl Gt<i32> for Qfloat16

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

Source§

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

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

Source§

impl Le<f64> for Qfloat16

Source§

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

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

Source§

impl Le<i32> for Qfloat16

Source§

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

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

Source§

impl Lt<Ref<Qfloat16>> for Qfloat16

Source§

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

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

Source§

impl Lt<f64> for Qfloat16

Source§

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

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

Source§

impl Lt<i32> for Qfloat16

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

Source§

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

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

Source§

type Output = CppBox<Qfloat16>

The resulting type after applying the * operator.
Source§

impl Mul<f64> for &Qfloat16

Source§

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

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

Source§

type Output = f64

The resulting type after applying the * operator.
Source§

impl Mul<i32> for &Qfloat16

Source§

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

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

Source§

type Output = f64

The resulting type after applying the * operator.
Source§

impl PartialEq<Ref<Qfloat16>> for Qfloat16

Source§

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

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

1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<f64> for Qfloat16

Source§

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

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

1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i32> for Qfloat16

Source§

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

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

1.0.0 (const: unstable) · Source§

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

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

Source§

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

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

Source§

type Output = CppBox<Qfloat16>

The resulting type after applying the - operator.
Source§

impl Sub<f64> for &Qfloat16

Source§

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

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

Source§

type Output = f64

The resulting type after applying the - operator.
Source§

impl Sub<i32> for &Qfloat16

Source§

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

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

Source§

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>,

Source§

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>,

Source§

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.