Function metatensor::errors::check_ptr

source ·
pub fn check_ptr<T>(ptr: *mut T) -> Result<NonNull<T>, Error>
Expand description

Check a pointer allocated by metatensor-core, returning an error if is null