[][src]Trait typic::transmute::UnsafeTransmuteFrom

pub unsafe trait UnsafeTransmuteFrom<T, O = ()>: Sized where
    O: UnsafeTransmuteOptions
{ unsafe fn unsafe_transmute_from(from: T) -> Self; }

A sound value-to-value conversion. The reciprocal of UnsafeTransmuteInto.

UnsafeTransmuteFrom<T> is only implemented for U when

  1. T is soundly transmutable into U.

See also unsafe_transmute.

Required methods

unsafe fn unsafe_transmute_from(from: T) -> Self

Reinterprets the bits of from as type Self.

Loading content...

Implementors

impl<T, U, O> UnsafeTransmuteFrom<T, O> for U where
    U: FromType<T, Variant, <O as UnsafeTransmuteOptions>::Alignment, <O as UnsafeTransmuteOptions>::Transparency, <O as UnsafeTransmuteOptions>::Stability, <O as UnsafeTransmuteOptions>::Validity>,
    O: UnsafeTransmuteOptions
[src]

Loading content...