Trait big_int::UnsafeInto

source ·
pub trait UnsafeInto<T> {
    // Required method
    unsafe fn unsafe_into(self) -> T;
}
Expand description

A conversion that may only be performed unsafely.

use big_int::prelude::*;

let a: Tight<10> = unsafe { Tight::<10>::from_u128_inner(532).unsafe_into() };
assert_eq!(a, 532.into());

Required Methods§

source

unsafe fn unsafe_into(self) -> T

Implementors§

source§

impl<T> UnsafeInto<T> for T

source§

impl<const BASE: usize, B: BigInt<{ BASE }>> UnsafeInto<B> for Denormal<BASE, B>