Skip to main content

check_ptr

Function check_ptr 

Source
pub fn check_ptr<T>(ptr: *const T) -> Result<(), Error>
Expand description

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