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());