Module slice

Module slice 

Source
Expand description

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

Functions§

from_raw_parts
The wrapper of core::slice::from_raw_parts which panics if the passed pointer is either null or not aligned.
from_raw_parts_mut
The wrapper of core::slice::from_raw_parts_mut which panics if the passed pointer is either null or not aligned.
try_from_raw_parts
The wrapper of core::slice::from_raw_parts which may return an error if the passed pointer is either null or not aligned.
try_from_raw_parts_mut
The wrapper of core::slice::from_raw_parts_mut which may return an error if the passed pointer is either null or not aligned.