Trait concrete_core::math::torus::IntoTorus[][src]

pub trait IntoTorus<F>: Sized where
    F: FloatingPoint,
    Self: UnsignedInteger
{ fn into_torus(self) -> F; }

A trait that converts a torus element in unsigned integer representation to the closest torus element in floating point representation.

Required methods

fn into_torus(self) -> F[src]

Consumes self and returns its closest floating point representation.

Loading content...

Implementations on Foreign Types

impl<F> IntoTorus<F> for u8 where
    F: FloatingPoint + CastInto<Self>,
    Self: CastInto<F>, 
[src]

impl<F> IntoTorus<F> for u16 where
    F: FloatingPoint + CastInto<Self>,
    Self: CastInto<F>, 
[src]

impl<F> IntoTorus<F> for u32 where
    F: FloatingPoint + CastInto<Self>,
    Self: CastInto<F>, 
[src]

impl<F> IntoTorus<F> for u64 where
    F: FloatingPoint + CastInto<Self>,
    Self: CastInto<F>, 
[src]

impl<F> IntoTorus<F> for u128 where
    F: FloatingPoint + CastInto<Self>,
    Self: CastInto<F>, 
[src]

Loading content...

Implementors

Loading content...