Trait FloatBitsType

Source
pub trait FloatBitsType:
    Unsigned
    + Integer
    + Clone
    + NumAssign
    + NumAssignRef
    + NumRef
    + Shl<usize, Output = Self>
    + Shr<usize, Output = Self>
    + ShlAssign<usize>
    + ShrAssign<usize>
    + BitAnd<Self, Output = Self>
    + BitOr<Self, Output = Self>
    + BitXor<Self, Output = Self>
    + for<'a> BitAnd<&'a Self, Output = Self>
    + for<'a> BitOr<&'a Self, Output = Self>
    + for<'a> BitXor<&'a Self, Output = Self>
    + BitAndAssign<Self>
    + BitOrAssign<Self>
    + BitXorAssign<Self>
    + for<'a> BitAndAssign<&'a Self>
    + for<'a> BitOrAssign<&'a Self>
    + for<'a> BitXorAssign<&'a Self>
    + UpperHex
    + LowerHex
    + Octal
    + Binary
    + Display
    + FromPrimitive
    + ToPrimitive
    + Into<BigInt>
    + From<u8> {
    // Required method
    fn from_bigint(v: &BigInt) -> Option<Self>;
}
Expand description

type of underlying bits used to implement Float

Required Methods§

Source

fn from_bigint(v: &BigInt) -> Option<Self>

convert v to Self, returning Some if the value fits, otherwise returning None.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FloatBitsType for u8

Source§

impl FloatBitsType for u16

Source§

impl FloatBitsType for u32

Source§

impl FloatBitsType for u64

Source§

impl FloatBitsType for u128

Source§

impl FloatBitsType for BigUint

Implementors§