[][src]Trait high_mem_utils::RawPointer

pub unsafe trait RawPointer<T: ?Sized>: Copy + Clone + Pointer + Debug + PartialEq + Eq + Hash + PartialOrd + Ord + Unpin { }

A trait that represents a raw pointer or NonNull<T>,useful for functions that creates them.

This trait is unsafe because the dangling safe function requires the implementors to have less or equal size and equal alignment of an usize,otherwise it will be UB.

Implementations on Foreign Types

impl<T: ?Sized> RawPointer<T> for *const T[src]

impl<T: ?Sized> RawPointer<T> for *mut T[src]

impl<T: ?Sized> RawPointer<T> for NonNull<T>[src]

Loading content...

Implementors

Loading content...