[−][src]Struct a_half::f16
Type f16
, which is essentially a wrapper around u16.
Methods
impl f16
[src]
pub fn from_bits(x: u16) -> Self
[src]
Build a f16
from its bit-representation.
pub fn to_bits(self) -> u16
[src]
Obtain a f16
's bit-representation.
pub fn is_finite(self) -> bool
[src]
The is_finite
method for f16
pub fn is_infinite(self) -> bool
[src]
The is_infinite
method for f16
pub fn is_nan(self) -> bool
[src]
The is_nan
method for f16
pub fn is_normal(self) -> bool
[src]
The is_normal
method for f16
pub fn is_sign_positive(self) -> bool
[src]
The is_sign_positive
method for f16
pub fn is_sign_negative(self) -> bool
[src]
The is_sign_negative
method for f16
Trait Implementations
impl Clone for f16
[src]
impl PartialOrd<f16> for f16
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<f16> for f16
[src]
impl From<f16> for f32
[src]
impl From<f32> for f16
[src]
impl Copy for f16
[src]
impl Add<f16> for f16
[src]
type Output = f16
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl Sub<f16> for f16
[src]
type Output = f16
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
impl Mul<f16> for f16
[src]
type Output = f16
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self
[src]
impl Div<f16> for f16
[src]
type Output = f16
The resulting type after applying the /
operator.
fn div(self, other: Self) -> Self
[src]
impl Display for f16
[src]
impl Debug for f16
[src]
Auto Trait Implementations
impl Unpin for f16
impl Sync for f16
impl Send for f16
impl UnwindSafe for f16
impl RefUnwindSafe for f16
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,