[−][src]Trait rfc::core::convert::transmute::TransmuteFrom
Reinterpret the bits of Src as a type Self.
The reciprocal of TransmuteFrom.
This trait is implemented automatically by the compiler for combinations of types where a transmutation is valid.
Provided methods
fn transmute_from(src: Src) -> Self where
Src: Sized,
Self: Sized,
Neglect: SafeTransmuteOptions,
Src: Sized,
Self: Sized,
Neglect: SafeTransmuteOptions,
Reinterpret the bits of a value of one type as another type, safely.
unsafe fn unsafe_transmute_from(src: Src) -> Self where
Src: Sized,
Self: Sized,
Neglect: TransmuteOptions,
Src: Sized,
Self: Sized,
Neglect: TransmuteOptions,
Reinterpret the bits of a value of one type as another type, potentially unsafely.
The onus is on you to ensure that calling this function is safe.
Implementors
impl<Src, Dst> TransmuteFrom<Src, ()> for Dst where
Src: PromiseTransmutableInto,
Dst: PromiseTransmutableFrom,
<Dst as PromiseTransmutableFrom>::Archetype: TransmuteFrom<<Src as PromiseTransmutableInto>::Archetype, NeglectStability>, [src]
Src: PromiseTransmutableInto,
Dst: PromiseTransmutableFrom,
<Dst as PromiseTransmutableFrom>::Archetype: TransmuteFrom<<Src as PromiseTransmutableInto>::Archetype, NeglectStability>,
A type Dst is stably transmutable from Src if:
Dstimplements PromiseTransmutableFrom,Srcimplements PromiseTransmutableInto, and- The PromiseTransmutableFrom::Archetype of
Dstis safely transmutable from the PromiseTransmutableInto::Archetype ofSrc.