Trait zerocopy::util::AsAddress

source ·
pub(crate) trait AsAddress {
    // Required method
    fn addr(self) -> usize;
}

Required Methods§

source

fn addr(self) -> usize

Implementations on Foreign Types§

source§

impl<'a, T: ?Sized> AsAddress for &'a T

source§

fn addr(self) -> usize

source§

impl<'a, T: ?Sized> AsAddress for &'a mut T

source§

fn addr(self) -> usize

source§

impl<T: ?Sized> AsAddress for *const T

source§

fn addr(self) -> usize

source§

impl<T: ?Sized> AsAddress for *mut T

source§

fn addr(self) -> usize

Implementors§