[][src]Trait typic::safe::TransmuteFrom

pub unsafe trait TransmuteFrom<T>: Sized {
    fn transmute_from(from: T) -> Self;
}

A safe and sound value-to-value conversion. The opposite of TransmuteInto.

TransmuteFrom<T> is only implemented for U when

  1. T is soundly transmutable into U, and
  2. T is safely transmutable into U.

See also transmute_safe.

Required methods

fn transmute_from(from: T) -> Self

Reinterprets the bits of from as type Self.

Loading content...

Implementors

impl<T, U> TransmuteFrom<T> for U where
    U: Transparent + FromType<T, Relax, Safe>, 
[src]

Loading content...