[][src]Struct a_half::f16

pub struct f16 { /* fields omitted */ }

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 From<f16> for f32[src]

impl From<f32> for f16[src]

impl Clone for f16[src]

impl PartialOrd<f16> for f16[src]

impl Copy for f16[src]

impl PartialEq<f16> for f16[src]

impl Debug for f16[src]

impl Display for f16[src]

impl Sub<f16> for f16[src]

type Output = f16

The resulting type after applying the - operator.

impl Add<f16> for f16[src]

type Output = f16

The resulting type after applying the + operator.

impl Mul<f16> for f16[src]

type Output = f16

The resulting type after applying the * operator.

impl Div<f16> for f16[src]

type Output = f16

The resulting type after applying the / operator.

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> From<T> for T[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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