[][src]Trait pebble_sys::standard_c::memory::CastUncheckedExt

pub trait CastUncheckedExt<'a> {
    unsafe fn cast_unchecked<T>(self) -> &'a T;
}

Required methods

unsafe fn cast_unchecked<T>(self) -> &'a T

Casts a mutable untyped heap reference ([`&void]) into a typed one.

Safety

Horribly unsafe if T doesn't point to an initialised instance of T.

Loading content...

Implementors

impl<'a> CastUncheckedExt<'a> for &'a void[src]

Loading content...