Unsafe versions of standard library From<T> and Into<T>.
From<T>
Into<T>
[dependencies] unsafe_from = "1.0.0"
use unsafe_from::UnsafeFrom; struct MyUnsafeType(i32); unsafe impl UnsafeFrom<i32> for MyUnsafeType { unsafe fn unsafe_from(t: i32) -> MyUnsafeType { MyUnsafeType(t) } }