Module aligned_ptr::ptr[][src]

Expand description

A module containing functions defined in core::ptr with null and alignment checks.

Functions

as_mut

The wrapper of &mut *p which panics if p is either null or not aligned.

as_ref

The wrapper of &*p which panics if p is either null or not aligned.

copy

The wrapper of core::ptr::copy which panics unless the passed pointers are aligned and not null.

copy_nonoverlapping

The wrapper of core::ptr::copy_nonoverlapping which panics unless the passed pointers are aligned and not null.

drop_in_place

The wrapper of core::ptr::drop_in_place which panics if the passed pointer is null or not aligned.

get

The wrapper of *p which panics if p is either null or not aligned.

read

The wrapper of core::ptr::read which panics if the passed pointer is either null or not aligned.

read_volatile

The wrapper of core::ptr::read_volatile which panics if the passed pointer is either null or not aligned.

replace

The wrapper of core::ptr::replace which panics if the passed pointer is either null or not aligned.

swap

The wrapper of core::ptr::swap which panics unless the passed pointers are aligned and not null.

swap_nonoverlapping

The wrapper of core::ptr::swap_nonoverlapping which panics unless the passed pointers are aligned and not null.

try_as_mut

The wrapper of &mut *p which may return an error if p is either null or not aligned.

try_as_ref

The wrapper of &*p which may return an error if p is either null or not aligned.

try_copy

The wrapper of core::ptr::copy which may return an error unless the passed pointers are aligned and not null.

try_copy_nonoverlapping

The wrapper of core::ptr::copy_nonoverlapping which returns an error unless the passed pointers are aligned and not null.

try_drop_in_place

The wraper of core::ptr::drop_in_place which returns an error if the passed pointer is null or not aligned.

try_get

The wrapper of *p which returns an error if the pointer is either null or not aligned.

try_read

The wrapper of core::ptr::read which may return an error if the passed pointer is either null or not null.

try_read_volatile

The wrapper of core::ptr::read_volatile which returns an error if the passed pointer is either null or not aligned.

try_replace

The wrapper of core::ptr::replace which returns an error if the passed pointer is null or not aligned.

try_swap

The wrapper of core::ptr::swap which returns an error unless the passed pointers are aligned and not null.

try_swap_nonoverlapping

The wrapper of core::ptr::swap_nonoverlapping which returns an error unless the passed pointers are aligned and not null.

try_write

The wrapper of core::ptr::write which may return an error if the passed pointer is either null or not aligned.

try_write_bytes

The wrapper of core::ptr::write_bytes which returns an error if the passed pointer is null or not aligned.

try_write_volatile

The wrapper of core::ptr::write_volatile which returns an error if the passed pointer is either null or not aligned.

write

The wrapper of core::ptr::write which panics if the passed pointer is either null or not aligned.

write_bytes

The wrapper of core::ptr::write_bytes which panics if the passed pointer is null or not aligned.

write_volatile

The wrapper of core::ptr::write_volatile which panics if the passed pionter is either null or not aligned.