check_ptr

Function 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