[][src]Trait convute::marker::TryTransmute

pub unsafe trait TryTransmute<T: Sized>: Sized {
    fn can_transmute(&self) -> bool;
}

By implementing this trait you promise that every Self for which self.can_transmute() returns true is a valid T.

Required methods

fn can_transmute(&self) -> bool

Loading content...

Implementations on Foreign Types

impl TryTransmute<i8> for u8[src]

impl TryTransmute<u8> for i8[src]

impl TryTransmute<NonZeroU8> for Option<NonZeroU8>[src]

impl TryTransmute<i16> for u16[src]

impl TryTransmute<u16> for i16[src]

impl TryTransmute<NonZeroU16> for Option<NonZeroU16>[src]

impl TryTransmute<i32> for u32[src]

impl TryTransmute<u32> for i32[src]

impl TryTransmute<NonZeroU32> for Option<NonZeroU32>[src]

impl TryTransmute<i64> for u64[src]

impl TryTransmute<u64> for i64[src]

impl TryTransmute<NonZeroU64> for Option<NonZeroU64>[src]

impl TryTransmute<i128> for u128[src]

impl TryTransmute<u128> for i128[src]

impl TryTransmute<NonZeroU128> for Option<NonZeroU128>[src]

impl TryTransmute<isize> for usize[src]

impl TryTransmute<usize> for isize[src]

impl TryTransmute<NonZeroUsize> for Option<NonZeroUsize>[src]

Loading content...

Implementors

impl<T: Sized> TryTransmute<T> for T[src]

Loading content...