pub fn check_ptr<T>(ptr: *const T) -> Result<(), Error>
Check a pointer allocated by metatensor-core, returning an error if is null