Struct BigFloat

Source
pub struct BigFloat<const BASE: u32, M: Manager> {
    pub manager: M,
    pub significand: JsBigintMutRef<M::Dealloc>,
    pub sign: Sign,
    pub exp: i64,
    pub non_zero_reminder: bool,
}

Fields§

§manager: M§significand: JsBigintMutRef<M::Dealloc>§sign: Sign§exp: i64§non_zero_reminder: bool

Implementations§

Source§

impl<M: Manager> BigFloat<10, M>

Source

pub fn to_bin(self, precision: u8) -> BigFloat<2, M>

Source§

impl<M: Manager> BigFloat<2, M>

Source

pub fn to_f64(self) -> f64

Trait Implementations§

Source§

impl<const BASE: u32, M: Debug + Manager> Debug for BigFloat<BASE, M>
where M::Dealloc: Debug,

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<const BASE: u32, M> Freeze for BigFloat<BASE, M>
where M: Freeze,

§

impl<const BASE: u32, M> RefUnwindSafe for BigFloat<BASE, M>

§

impl<const BASE: u32, M> !Send for BigFloat<BASE, M>

§

impl<const BASE: u32, M> !Sync for BigFloat<BASE, M>

§

impl<const BASE: u32, M> Unpin for BigFloat<BASE, M>
where M: Unpin,

§

impl<const BASE: u32, M> UnwindSafe for BigFloat<BASE, M>

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> 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> RefMut for T

Source§

unsafe fn to_mut_ptr(&mut self) -> *mut Self

Source§

fn modify(&mut self, f: impl FnOnce(Self) -> Self)
where Self: Sized,

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.