#[repr(C)]pub struct SmallFloat<const N: usize> {
pub sign_biased_exponent: u64,
/* private fields */
}Fields§
§sign_biased_exponent: u64Implementations§
Source§impl<const N: usize> SmallFloat<N>
impl<const N: usize> SmallFloat<N>
Methods from Deref<Target = BigFloat>§
pub fn precision_bits(&self) -> u64
pub fn sign(&self) -> Sign
pub fn exponent(&self) -> Exponent
pub fn mantissa_len(&self) -> usize
pub fn mantissa(&self) -> &[Limb] ⓘ
pub fn mantissa_mut(&mut self) -> &mut [Limb] ⓘ
pub fn full_mantissa(&self) -> &[Limb] ⓘ
pub fn full_mantissa_mut(&mut self) -> &mut [Limb] ⓘ
pub fn copy_from(&mut self, src: &BigFloat, rnd: Round) -> Approx
pub fn to_f64(&self, rnd: Round) -> (f64, Approx)
pub fn repr(&self) -> &FloatRepr
Trait Implementations§
Source§impl<const N: usize> Clone for SmallFloat<N>
impl<const N: usize> Clone for SmallFloat<N>
Source§fn clone(&self) -> SmallFloat<N>
fn clone(&self) -> SmallFloat<N>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const N: usize> Deref for SmallFloat<N>
impl<const N: usize> Deref for SmallFloat<N>
Source§impl<const N: usize> DerefMut for SmallFloat<N>
impl<const N: usize> DerefMut for SmallFloat<N>
Source§impl<const N: usize> Display for SmallFloat<N>
impl<const N: usize> Display for SmallFloat<N>
Source§impl<const N: usize> Zeroable for SmallFloat<N>
impl<const N: usize> Zeroable for SmallFloat<N>
impl<const N: usize> Copy for SmallFloat<N>
impl<const N: usize> Pod for SmallFloat<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for SmallFloat<N>
impl<const N: usize> RefUnwindSafe for SmallFloat<N>
impl<const N: usize> Send for SmallFloat<N>
impl<const N: usize> Sync for SmallFloat<N>
impl<const N: usize> Unpin for SmallFloat<N>
impl<const N: usize> UnwindSafe for SmallFloat<N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.