Trait 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>