Struct dtoa::diyfp::DiyFp

source ·
pub struct DiyFp<F, E> {
    pub f: F,
    pub e: E,
}

Fields§

§f: F§e: E

Implementations§

source§

impl<F, E> DiyFp<F, E>

source

pub fn new(f: F, e: E) -> Self

source§

impl DiyFp<u32, i32>

source

pub(crate) unsafe fn from(d: f32) -> Self

source

pub(crate) fn normalize(self) -> DiyFp<u32, i32>

source

pub(crate) fn normalize_boundary(self) -> DiyFp<u32, i32>

source

pub(crate) fn normalized_boundaries(self) -> (DiyFp<u32, i32>, DiyFp<u32, i32>)

source§

impl DiyFp<u64, isize>

source

pub(crate) unsafe fn from(d: f64) -> Self

source

pub(crate) fn normalize(self) -> DiyFp<u64, isize>

source

pub(crate) fn normalize_boundary(self) -> DiyFp<u64, isize>

source

pub(crate) fn normalized_boundaries( self, ) -> (DiyFp<u64, isize>, DiyFp<u64, isize>)

Trait Implementations§

source§

impl<F: Clone, E: Clone> Clone for DiyFp<F, E>

source§

fn clone(&self) -> DiyFp<F, E>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<F: Debug, E: Debug> Debug for DiyFp<F, E>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Mul for DiyFp<u32, i32>

source§

type Output = DiyFp<u32, i32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul for DiyFp<u64, isize>

source§

type Output = DiyFp<u64, isize>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl<F, E> Sub for DiyFp<F, E>
where F: Sub<F, Output = F>,

source§

type Output = DiyFp<F, E>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl<F: Copy, E: Copy> Copy for DiyFp<F, E>

Auto Trait Implementations§

§

impl<F, E> Freeze for DiyFp<F, E>
where F: Freeze, E: Freeze,

§

impl<F, E> RefUnwindSafe for DiyFp<F, E>

§

impl<F, E> Send for DiyFp<F, E>
where F: Send, E: Send,

§

impl<F, E> Sync for DiyFp<F, E>
where F: Sync, E: Sync,

§

impl<F, E> Unpin for DiyFp<F, E>
where F: Unpin, E: Unpin,

§

impl<F, E> UnwindSafe for DiyFp<F, E>
where F: UnwindSafe, E: UnwindSafe,

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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, 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.